| 1160 | } |
| 1161 | |
| 1162 | void 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 | |
| 1170 | void Sample::UpdateSkinnedBLASs(nvrhi::ICommandList* commandList, uint32_t frameIndex) const |
| 1171 | { |
nothing calls this directly
no outgoing calls
no test coverage detected