HDK
|
#include <mesh.h>
Classes | |
class | _FvarTopologyTracker |
Static Public Member Functions | |
static HDST_API bool | IsEnabledPackedNormals () |
Returns whether packed (10_10_10 bits) normals to be used. More... | |
![]() | |
static HD_API void | ConfigureRepr (TfToken const &reprName, HdMeshReprDesc desc1, HdMeshReprDesc desc2=HdMeshReprDesc()) |
Protected Member Functions | |
HDST_API void | _InitRepr (TfToken const &reprToken, HdDirtyBits *dirtyBits) override |
HDST_API HdDirtyBits | _PropagateDirtyBits (HdDirtyBits bits) const override |
void | _UpdateRepr (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, TfToken const &reprToken, HdDirtyBits *dirtyBitsState) |
HdBufferArrayRangeSharedPtr | _GetSharedPrimvarRange (uint64_t primvarId, HdBufferSpecVector const &updatedOrAddedSpecs, HdBufferSpecVector const &removedSpecs, HdBufferArrayRangeSharedPtr const &curRange, bool *isFirstInstance, HdStResourceRegistrySharedPtr const &resourceRegistry) const |
bool | _MaterialHasPtex (const HdRenderIndex &renderIndex, const SdfPath &materialId) const |
bool | _UseQuadIndices (const HdRenderIndex &renderIndex, const HdSt_MeshTopologySharedPtr &topology) const |
bool | _MaterialHasLimitSurface (const HdRenderIndex &renderIndex, const SdfPath &materialId) const |
bool | _UseLimitRefinement (const HdRenderIndex &renderIndex, const HdMeshTopology &topology) const |
bool | _UseSmoothNormals (HdSt_MeshTopologySharedPtr const &topology) const |
bool | _UseFlatNormals (const HdMeshReprDesc &desc) const |
void | _UpdateDrawItem (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem, HdDirtyBits *dirtyBits, const TfToken &reprToken, const HdReprSharedPtr &repr, const HdMeshReprDesc &desc, bool requireSmoothNormals, bool requireFlatNormals, int geomSubsetDescIndex) |
void | _UpdateDrawItemGeometricShader (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem, const HdMeshReprDesc &desc, const SdfPath &materialId) |
void | _UpdateShadersForAllReprs (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, bool updateMaterialNetworkShader, bool updateGeometricShader) |
void | _UpdateMaterialTagsForAllReprs (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam) |
void | _PopulateTopology (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem, HdDirtyBits *dirtyBits, const TfToken &reprToken, const HdReprSharedPtr &repr, const HdMeshReprDesc &desc, int geomSubsetDescIndex) |
void | _UpdateDrawItemsForGeomSubsets (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdStDrawItem *drawItem, const TfToken &reprToken, const HdReprSharedPtr &repr, const HdGeomSubsets &geomSubsets, size_t oldNumGeomSubsets) |
void | _CreateTopologyRangeForGeomSubset (HdStResourceRegistrySharedPtr resourceRegistry, HdChangeTracker &changeTracker, HdRenderParam *renderParam, HdStDrawItem *drawItem, const TfToken &indexToken, HdBufferSourceSharedPtr indicesSource, HdBufferSourceSharedPtr fvarIndicesSource, HdBufferSourceSharedPtr geomSubsetFaceIndicesHelperSource, const VtIntArray &faceIndices, bool refined) |
void | _GatherFaceVaryingTopologies (HdSceneDelegate *sceneDelegate, const HdReprSharedPtr &repr, const HdMeshReprDesc &desc, HdStDrawItem *drawItem, int geomSubsetDescIndex, HdDirtyBits *dirtyBits, const SdfPath &id, HdSt_MeshTopologySharedPtr topology) |
void | _PopulateAdjacency (HdStResourceRegistrySharedPtr const &resourceRegistry) |
void | _PopulateVertexPrimvars (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, const HdReprSharedPtr &repr, const HdMeshReprDesc &desc, HdStDrawItem *drawItem, int geomSubsetDescIndex, HdDirtyBits *dirtyBits, bool requireSmoothNormals) |
void | _PopulateFaceVaryingPrimvars (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, const HdReprSharedPtr &repr, const HdMeshReprDesc &desc, HdStDrawItem *drawItem, int geomSubsetDescIndex, HdDirtyBits *dirtyBits) |
void | _PopulateElementPrimvars (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, const HdReprSharedPtr &repr, const HdMeshReprDesc &desc, HdStDrawItem *drawItem, int geomSubsetDescIndex, HdDirtyBits *dirtyBits, bool requireFlatNormals) |
int | _GetRefineLevelForDesc (const HdMeshReprDesc &desc) const |
![]() | |
HD_API | HdMesh (SdfPath const &id) |
![]() | |
HD_API HdReprSharedPtr const & | _GetRepr (TfToken const &reprToken) const |
HD_API void | _UpdateVisibility (HdSceneDelegate *sceneDelegate, HdDirtyBits *dirtyBits) |
HD_API void | _UpdateInstancer (HdSceneDelegate *sceneDelegate, HdDirtyBits *dirtyBits) |
Additional Inherited Members | |
![]() | |
using | _MeshReprConfig = _ReprDescConfigs< HdMeshReprDesc, 2 > |
![]() | |
using | _ReprVector = std::vector< std::pair< TfToken, HdReprSharedPtr >> |
![]() | |
static HD_API _MeshReprConfig::DescArray | _GetReprDesc (TfToken const &reprName) |
![]() | |
HdRprimSharedData | _sharedData |
HdReprSelector | _authoredReprSelector |
TfToken | _renderTag |
_ReprVector | _reprs |
|
override |
|
protected |
|
protected |
|
protected |
|
protected |
|
overrideprotectedvirtual |
Initialize the given representation of this Rprim. This is called prior to syncing the prim, the first time the repr is used.
reprToken is the name of the representation to initalize.
dirtyBits is an in/out value. It is initialized to the dirty bits from the change tracker. InitRepr can then set additional dirty bits if additional data is required from the scene delegate when this repr is synced. InitRepr occurs before dirty bit propagation.
Implements HdRprim.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
overrideprotectedvirtual |
This callback from Rprim gives the prim an opportunity to set additional dirty bits based on those already set. This is done before the dirty bits are passed to the scene delegate, so can be used to communicate that extra information is needed by the prim to process the changes.
The return value is the new set of dirty bits, which replaces the bits passed in.
See HdRprim::PropagateRprimDirtyBits()
Implements HdRprim.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
Finalizes object resources. This function might not delete resources, but it should deal with resource ownership so that the rprim is deletable.
Reimplemented from HdRprim.
|
overridevirtual |
Returns the set of dirty bits that should be added to the change tracker for this prim, when this prim is inserted.
Implements HdRprim.
|
overridevirtual |
Topology (member) getter.
Reimplemented from HdMesh.
HdStMesh::HF_MALLOC_TAG_NEW | ( | "new HdStMesh" | ) |
|
static |
Returns whether packed (10_10_10 bits) normals to be used.
|
overridevirtual |
Pull invalidated scene data and prepare/update the renderable representation.
This function is told which scene data to pull through the dirtyBits parameter. The first time it's called, dirtyBits comes from _GetInitialDirtyBits(), which provides initial dirty state, but after that it's driven by invalidation tracking in the scene delegate.
The contract for this function is that the prim can only pull on scene delegate buffers that are marked dirty. Scene delegates can and do implement just-in-time data schemes that mean that pulling on clean data will be at best incorrect, and at worst a crash.
This function is called in parallel from worker threads, so it needs to be threadsafe; calls into HdSceneDelegate are ok.
sceneDelegate | The data source for this geometry item. |
renderParam | A render delegate object that holds rendering parameters that scene geometry may use. |
dirtyBits | A specifier for which scene data has changed. |
reprToken | The representation that needs to be updated. This is useful for backends that support multiple display representations for an rprim. A given representation may choose to pull on a subset of the dirty state. |
dirtyBits | On input specifies which state is dirty and can be pulled from the scene delegate. On output specifies which bits are still dirty and were not cleaned by the sync. |
Implements HdRprim.
|
overridevirtual |
Returns the identifier of this Rprim. This is both used in the RenderIndex and the SceneDelegate and acts as the associative key for the Rprim in both contexts.
Reimplemented from HdRprim.