| 952 | } |
| 953 | |
| 954 | void CommandListWrapper::dispatchMeshIndirect(uint32_t offsetBytes, uint32_t maxDrawCount) |
| 955 | { |
| 956 | if (!requireOpenState()) |
| 957 | return; |
| 958 | |
| 959 | if (!requireType(CommandQueue::Graphics, "dispatchMesh")) |
| 960 | return; |
| 961 | |
| 962 | if (!m_MeshletStateSet) |
| 963 | { |
| 964 | error("Meshlet state is not set before a dispatchMesh call.\n" |
| 965 | "Note that setting graphics or compute state invalidates the meshlet state."); |
| 966 | return; |
| 967 | } |
| 968 | |
| 969 | if (!validatePushConstants("meshlet", "setMeshletState")) |
| 970 | return; |
| 971 | |
| 972 | if (!m_CurrentMeshletState.indirectParams) |
| 973 | { |
| 974 | error("Indirect params buffer is not set before a dispatchMeshIndirect call."); |
| 975 | return; |
| 976 | } |
| 977 | |
| 978 | m_CommandList->dispatchMeshIndirect(offsetBytes, maxDrawCount); |
| 979 | } |
| 980 | |
| 981 | void CommandListWrapper::dispatchMeshIndirectCount(uint32_t paramOffsetBytes, uint32_t countOffsetBytes, uint32_t maxDrawCount) |
| 982 | { |
nothing calls this directly
no outgoing calls
no test coverage detected