HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
primUtils.h File Reference
#include "pxr/pxr.h"
#include "pxr/imaging/hdSt/api.h"
#include "pxr/imaging/hdSt/resourceRegistry.h"
#include "pxr/imaging/hd/sceneDelegate.h"
#include <memory>
#include <string>
#include <vector>
+ Include dependency graph for primUtils.h:

Go to the source code of this file.

Typedefs

using HdBufferArrayRangeSharedPtr = std::shared_ptr< class HdBufferArrayRange >
 
using HdBufferSourceSharedPtrVector = std::vector< HdBufferSourceSharedPtr >
 
using HdBufferSpecVector = std::vector< struct HdBufferSpec >
 
using HdStShaderCodeSharedPtr = std::shared_ptr< class HdStShaderCode >
 
using HdComputationSharedPtr = std::shared_ptr< class HdComputation >
 
using HdStResourceRegistrySharedPtr = std::shared_ptr< HdStResourceRegistry >
 

Functions

HDST_API void HdStMarkDrawBatchesDirty (HdRenderParam *renderParam)
 
HDST_API void HdStMarkMaterialTagsDirty (HdRenderParam *renderParam)
 
HDST_API void HdStMarkGarbageCollectionNeeded (HdRenderParam *renderParam)
 
HDST_API HdPrimvarDescriptorVector HdStGetPrimvarDescriptors (HdRprim const *prim, HdStDrawItem const *drawItem, HdSceneDelegate *delegate, HdInterpolation interpolation)
 
HDST_API HdPrimvarDescriptorVector HdStGetInstancerPrimvarDescriptors (HdStInstancer const *instancer, HdSceneDelegate *delegate)
 
HDST_API void HdStSetMaterialId (HdSceneDelegate *delegate, HdRenderParam *renderParam, HdRprim *rprim)
 
HDST_API void HdStSetMaterialTag (HdSceneDelegate *delegate, HdRenderParam *renderParam, HdRprim *rprim, bool hasDisplayOpacityPrimvar, bool occludedSelectionShowsThrough)
 
HDST_API HdStShaderCodeSharedPtr HdStGetMaterialShader (HdRprim const *prim, HdSceneDelegate *delegate)
 
HDST_API bool HdStIsValidBAR (HdBufferArrayRangeSharedPtr const &range)
 
HDST_API bool HdStCanSkipBARAllocationOrUpdate (HdBufferSourceSharedPtrVector const &sources, HdStComputationSharedPtrVector const &computations, HdBufferArrayRangeSharedPtr const &curRange, HdDirtyBits dirtyBits)
 
HDST_API bool HdStCanSkipBARAllocationOrUpdate (HdBufferSourceSharedPtrVector const &sources, HdBufferArrayRangeSharedPtr const &curRange, HdDirtyBits dirtyBits)
 
HDST_API HdBufferSpecVector HdStGetRemovedPrimvarBufferSpecs (HdBufferArrayRangeSharedPtr const &curRange, HdPrimvarDescriptorVector const &newPrimvarDescs, HdExtComputationPrimvarDescriptorVector const &newCompPrimvarDescs, TfTokenVector const &internallyGeneratedPrimvarNames, SdfPath const &rprimId)
 
HDST_API HdBufferSpecVector HdStGetRemovedPrimvarBufferSpecs (HdBufferArrayRangeSharedPtr const &curRange, HdPrimvarDescriptorVector const &newPrimvarDescs, TfTokenVector const &internallyGeneratedPrimvarNames, SdfPath const &rprimId)
 
HDST_API void HdStUpdateDrawItemBAR (HdBufferArrayRangeSharedPtr const &newRange, int drawCoordIndex, HdRprimSharedData *sharedData, HdRenderParam *renderParam, HdChangeTracker *changeTracker)
 
HDST_API bool HdStIsPrimvarExistentAndValid (HdRprim *prim, HdSceneDelegate *delegate, HdPrimvarDescriptorVector const &primvars, TfToken const &primvarName)
 
HDST_API bool HdStShouldPopulateConstantPrimvars (HdDirtyBits const *dirtyBits, SdfPath const &id)
 
HDST_API void HdStPopulateConstantPrimvars (HdRprim *prim, HdRprimSharedData *sharedData, HdSceneDelegate *delegate, HdRenderParam *renderParam, HdDrawItem *drawItem, HdDirtyBits *dirtyBits, HdPrimvarDescriptorVector const &constantPrimvars, bool *hasMirroredTransform=nullptr)
 
HDST_API void HdStUpdateInstancerData (HdRenderIndex &renderIndex, HdRenderParam *renderParam, HdRprim *prim, HdStDrawItem *drawItem, HdRprimSharedData *sharedData, HdDirtyBits rprimDirtyBits)
 
HDST_API bool HdStIsInstancePrimvarExistentAndValid (HdRenderIndex &renderIndex, HdRprim *prim, TfToken const &primvarName)
 
HDST_API void HdStProcessTopologyVisibility (VtIntArray invisibleElements, int numTotalElements, VtIntArray invisiblePoints, int numTotalPoints, HdRprimSharedData *sharedData, HdStDrawItem *drawItem, HdRenderParam *renderParam, HdChangeTracker *changeTracker, HdStResourceRegistrySharedPtr const &resourceRegistry, SdfPath const &rprimId)
 
HDST_API bool HdStIsEnabledSharedVertexPrimvar ()
 
HDST_API uint64_t HdStComputeSharedPrimvarId (uint64_t baseId, HdBufferSourceSharedPtrVector const &sources, HdStComputationSharedPtrVector const &computations)
 
HDST_API void HdStGetBufferSpecsFromCompuations (HdStComputationSharedPtrVector const &computations, HdBufferSpecVector *bufferSpecs)
 

Typedef Documentation

Definition at line 47 of file primUtils.h.

Definition at line 49 of file primUtils.h.

using HdBufferSpecVector = std::vector<struct HdBufferSpec>

Definition at line 50 of file primUtils.h.

using HdComputationSharedPtr = std::shared_ptr<class HdComputation>

Definition at line 53 of file primUtils.h.

Definition at line 56 of file primUtils.h.

using HdStShaderCodeSharedPtr = std::shared_ptr<class HdStShaderCode>

Definition at line 51 of file primUtils.h.

Function Documentation

HDST_API bool HdStCanSkipBARAllocationOrUpdate ( HdBufferSourceSharedPtrVector const sources,
HdStComputationSharedPtrVector const computations,
HdBufferArrayRangeSharedPtr const curRange,
HdDirtyBits  dirtyBits 
)
HDST_API bool HdStCanSkipBARAllocationOrUpdate ( HdBufferSourceSharedPtrVector const sources,
HdBufferArrayRangeSharedPtr const curRange,
HdDirtyBits  dirtyBits 
)
HDST_API uint64_t HdStComputeSharedPrimvarId ( uint64_t  baseId,
HdBufferSourceSharedPtrVector const sources,
HdStComputationSharedPtrVector const computations 
)
HDST_API void HdStGetBufferSpecsFromCompuations ( HdStComputationSharedPtrVector const computations,
HdBufferSpecVector bufferSpecs 
)
HDST_API HdPrimvarDescriptorVector HdStGetInstancerPrimvarDescriptors ( HdStInstancer const instancer,
HdSceneDelegate delegate 
)
HDST_API HdStShaderCodeSharedPtr HdStGetMaterialShader ( HdRprim const prim,
HdSceneDelegate delegate 
)
HDST_API HdPrimvarDescriptorVector HdStGetPrimvarDescriptors ( HdRprim const prim,
HdStDrawItem const drawItem,
HdSceneDelegate delegate,
HdInterpolation  interpolation 
)
HDST_API HdBufferSpecVector HdStGetRemovedPrimvarBufferSpecs ( HdBufferArrayRangeSharedPtr const curRange,
HdPrimvarDescriptorVector const newPrimvarDescs,
HdExtComputationPrimvarDescriptorVector const newCompPrimvarDescs,
TfTokenVector const internallyGeneratedPrimvarNames,
SdfPath const rprimId 
)
HDST_API HdBufferSpecVector HdStGetRemovedPrimvarBufferSpecs ( HdBufferArrayRangeSharedPtr const curRange,
HdPrimvarDescriptorVector const newPrimvarDescs,
TfTokenVector const internallyGeneratedPrimvarNames,
SdfPath const rprimId 
)
HDST_API bool HdStIsEnabledSharedVertexPrimvar ( )
HDST_API bool HdStIsInstancePrimvarExistentAndValid ( HdRenderIndex renderIndex,
HdRprim prim,
TfToken const primvarName 
)
HDST_API bool HdStIsPrimvarExistentAndValid ( HdRprim prim,
HdSceneDelegate delegate,
HdPrimvarDescriptorVector const primvars,
TfToken const primvarName 
)
HDST_API bool HdStIsValidBAR ( HdBufferArrayRangeSharedPtr const range)
HDST_API void HdStMarkDrawBatchesDirty ( HdRenderParam renderParam)
HDST_API void HdStMarkGarbageCollectionNeeded ( HdRenderParam renderParam)
HDST_API void HdStMarkMaterialTagsDirty ( HdRenderParam renderParam)
HDST_API void HdStPopulateConstantPrimvars ( HdRprim prim,
HdRprimSharedData sharedData,
HdSceneDelegate delegate,
HdRenderParam renderParam,
HdDrawItem drawItem,
HdDirtyBits dirtyBits,
HdPrimvarDescriptorVector const constantPrimvars,
bool *  hasMirroredTransform = nullptr 
)
HDST_API void HdStProcessTopologyVisibility ( VtIntArray  invisibleElements,
int  numTotalElements,
VtIntArray  invisiblePoints,
int  numTotalPoints,
HdRprimSharedData sharedData,
HdStDrawItem drawItem,
HdRenderParam renderParam,
HdChangeTracker changeTracker,
HdStResourceRegistrySharedPtr const resourceRegistry,
SdfPath const rprimId 
)
HDST_API void HdStSetMaterialId ( HdSceneDelegate delegate,
HdRenderParam renderParam,
HdRprim rprim 
)
HDST_API void HdStSetMaterialTag ( HdSceneDelegate delegate,
HdRenderParam renderParam,
HdRprim rprim,
bool  hasDisplayOpacityPrimvar,
bool  occludedSelectionShowsThrough 
)
HDST_API bool HdStShouldPopulateConstantPrimvars ( HdDirtyBits const dirtyBits,
SdfPath const id 
)
HDST_API void HdStUpdateDrawItemBAR ( HdBufferArrayRangeSharedPtr const newRange,
int  drawCoordIndex,
HdRprimSharedData sharedData,
HdRenderParam renderParam,
HdChangeTracker changeTracker 
)
HDST_API void HdStUpdateInstancerData ( HdRenderIndex renderIndex,
HdRenderParam renderParam,
HdRprim prim,
HdStDrawItem drawItem,
HdRprimSharedData sharedData,
HdDirtyBits  rprimDirtyBits 
)