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 "pxr/imaging/hd/rprim.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 HdSt_MaterialNetworkShaderSharedPtr = std::shared_ptr< class HdSt_MaterialNetworkShader >
 
using HdStComputationSharedPtr = std::shared_ptr< class HdStComputation >
 
using HdStResourceRegistrySharedPtr = std::shared_ptr< HdStResourceRegistry >
 

Functions

HDST_API void HdStMarkDrawBatchesDirty (HdRenderParam *renderParam)
 
HDST_API void HdStMarkMaterialTagsDirty (HdRenderParam *renderParam)
 
HDST_API void HdStMarkGeomSubsetDrawItemsDirty (HdRenderParam *renderParam)
 
HDST_API void HdStMarkGarbageCollectionNeeded (HdRenderParam *renderParam)
 
HDST_API HdPrimvarDescriptorVector HdStGetPrimvarDescriptors (HdRprim const *prim, HdStDrawItem const *drawItem, HdSceneDelegate *delegate, HdInterpolation interpolation, const HdReprSharedPtr &repr=nullptr, HdMeshGeomStyle descGeomStyle=HdMeshGeomStyleInvalid, int geomSubsetDescIndex=0, size_t numGeomSubsets=0)
 
HDST_API HdPrimvarDescriptorVector HdStGetInstancerPrimvarDescriptors (HdStInstancer const *instancer, HdSceneDelegate *delegate)
 
HDST_API void HdStUpdateRenderTag (HdSceneDelegate *delegate, HdRenderParam *renderParam, HdRprim *rprim)
 
HDST_API void HdStSetMaterialId (HdSceneDelegate *delegate, HdRenderParam *renderParam, HdRprim *rprim)
 
HDST_API void HdStSetMaterialTag (HdRenderParam *renderParam, HdDrawItem *drawItem, const TfToken &materialTag)
 
HDST_API void HdStSetMaterialTag (HdSceneDelegate *delegate, HdRenderParam *renderParam, HdDrawItem *drawItem, SdfPath const &materialId, bool hasDisplayOpacityPrimvar, bool occludedSelectionShowsThrough)
 
HDST_API
HdSt_MaterialNetworkShaderSharedPtr 
HdStGetMaterialNetworkShader (HdRprim const *prim, HdSceneDelegate *delegate)
 
HDST_API
HdSt_MaterialNetworkShaderSharedPtr 
HdStGetMaterialNetworkShader (HdRprim const *prim, HdSceneDelegate *delegate, SdfPath const &materialId)
 
HDST_API bool HdStIsValidBAR (HdBufferArrayRangeSharedPtr const &range)
 
HDST_API bool HdStCanSkipBARAllocationOrUpdate (HdBufferSourceSharedPtrVector const &sources, HdStComputationComputeQueuePairVector 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, HdStDrawItem *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, HdStComputationComputeQueuePairVector const &computations)
 
HDST_API void HdStGetBufferSpecsFromCompuations (HdStComputationComputeQueuePairVector const &computations, HdBufferSpecVector *bufferSpecs)
 

Typedef Documentation

Definition at line 48 of file primUtils.h.

Definition at line 50 of file primUtils.h.

using HdBufferSpecVector = std::vector<struct HdBufferSpec>

Definition at line 51 of file primUtils.h.

using HdSt_MaterialNetworkShaderSharedPtr = std::shared_ptr<class HdSt_MaterialNetworkShader>

Definition at line 53 of file primUtils.h.

Definition at line 55 of file primUtils.h.

Definition at line 58 of file primUtils.h.

Function Documentation

HDST_API bool HdStCanSkipBARAllocationOrUpdate ( HdBufferSourceSharedPtrVector const &  sources,
HdStComputationComputeQueuePairVector 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,
HdStComputationComputeQueuePairVector const &  computations 
)
HDST_API void HdStGetBufferSpecsFromCompuations ( HdStComputationComputeQueuePairVector const &  computations,
HdBufferSpecVector bufferSpecs 
)
HDST_API HdPrimvarDescriptorVector HdStGetInstancerPrimvarDescriptors ( HdStInstancer const *  instancer,
HdSceneDelegate delegate 
)
HDST_API HdSt_MaterialNetworkShaderSharedPtr HdStGetMaterialNetworkShader ( HdRprim const *  prim,
HdSceneDelegate delegate 
)
HDST_API HdSt_MaterialNetworkShaderSharedPtr HdStGetMaterialNetworkShader ( HdRprim const *  prim,
HdSceneDelegate delegate,
SdfPath const &  materialId 
)
HDST_API HdPrimvarDescriptorVector HdStGetPrimvarDescriptors ( HdRprim const *  prim,
HdStDrawItem const *  drawItem,
HdSceneDelegate delegate,
HdInterpolation  interpolation,
const HdReprSharedPtr repr = nullptr,
HdMeshGeomStyle  descGeomStyle = HdMeshGeomStyleInvalid,
int  geomSubsetDescIndex = 0,
size_t  numGeomSubsets = 0 
)
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 HdStMarkGeomSubsetDrawItemsDirty ( HdRenderParam renderParam)
HDST_API void HdStMarkMaterialTagsDirty ( HdRenderParam renderParam)
HDST_API void HdStPopulateConstantPrimvars ( HdRprim prim,
HdRprimSharedData sharedData,
HdSceneDelegate delegate,
HdRenderParam renderParam,
HdStDrawItem 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 ( HdRenderParam renderParam,
HdDrawItem drawItem,
const TfToken materialTag 
)
HDST_API void HdStSetMaterialTag ( HdSceneDelegate delegate,
HdRenderParam renderParam,
HdDrawItem drawItem,
SdfPath const &  materialId,
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 
)
HDST_API void HdStUpdateRenderTag ( HdSceneDelegate delegate,
HdRenderParam renderParam,
HdRprim rprim 
)