| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected