MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NVRHI / dispatchIndirect

Method dispatchIndirect

src/validation/validation-commandlist.cpp:870–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868 }
869
870 void CommandListWrapper::dispatchIndirect(uint32_t offsetBytes)
871 {
872 if (!requireOpenState())
873 return;
874
875 if (!requireType(CommandQueue::Compute, "dispatchIndirect"))
876 return;
877
878 if (!m_ComputeStateSet)
879 {
880 error("Compute state is not set before a dispatchIndirect call.\n"
881 "Note that setting graphics state invalidates the compute state.");
882 return;
883 }
884
885 if (!m_CurrentComputeState.indirectParams)
886 {
887 error("Indirect params buffer is not set before a dispatchIndirect call.");
888 return;
889 }
890
891 if (!validatePushConstants("compute", "setComputeState"))
892 return;
893
894 m_CommandList->dispatchIndirect(offsetBytes);
895 }
896
897 void CommandListWrapper::setMeshletState(const MeshletState& state)
898 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected