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

Method dispatch

src/validation/validation-commandlist.cpp:849–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847 }
848
849 void CommandListWrapper::dispatch(uint32_t groupsX, uint32_t groupsY /*= 1*/, uint32_t groupsZ /*= 1*/)
850 {
851 if (!requireOpenState())
852 return;
853
854 if (!requireType(CommandQueue::Compute, "dispatch"))
855 return;
856
857 if (!m_ComputeStateSet)
858 {
859 error("Compute state is not set before a dispatch call.\n"
860 "Note that setting graphics state invalidates the compute state.");
861 return;
862 }
863
864 if (!validatePushConstants("compute", "setComputeState"))
865 return;
866
867 m_CommandList->dispatch(groupsX, groupsY, groupsZ);
868 }
869
870 void CommandListWrapper::dispatchIndirect(uint32_t offsetBytes)
871 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected