MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / TransitionMeshBuffersToReadOnly

Method TransitionMeshBuffersToReadOnly

Rtxpt/Sample.cpp:1162–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160}
1161
1162void Sample::TransitionMeshBuffersToReadOnly(nvrhi::ICommandList* commandList)
1163{
1164 // Transition all the buffers to their necessary states before building the BLAS'es to allow BLAS batching
1165 for (const auto& skinnedInstance : m_scene->GetSceneGraph()->GetSkinnedMeshInstances())
1166 commandList->setBufferState(skinnedInstance->GetMesh()->buffers->vertexBuffer, nvrhi::ResourceStates::ShaderResource);
1167 commandList->commitBarriers();
1168}
1169
1170void Sample::UpdateSkinnedBLASs(nvrhi::ICommandList* commandList, uint32_t frameIndex) const
1171{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected