MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / AddGeometrySubsetDrawItems

Method AddGeometrySubsetDrawItems

Hydrogent/src/HnMesh.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void HnMesh::AddGeometrySubsetDrawItems(const pxr::HdMeshReprDesc& ReprDesc, pxr::HdRepr& Repr)
242{
243 if (ReprDesc.geomStyle == pxr::HdMeshGeomStyleInvalid ||
244 ReprDesc.geomStyle == pxr::HdMeshGeomStylePoints)
245 return;
246
247 const size_t NumGeomSubsets = m_Topology.GetGeomSubsets().size();
248 for (size_t i = 0; i < NumGeomSubsets; ++i)
249 {
250 pxr::HdRepr::DrawItemUniquePtr Item = std::make_unique<HnDrawItem>(_sharedData, *this);
251 Repr.AddGeomSubsetDrawItem(std::move(Item));
252 }
253}
254
255void HnMesh::_InitRepr(const pxr::TfToken& ReprToken, pxr::HdDirtyBits* DirtyBits)
256{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected