Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions runtime/src/command_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,9 @@ enum class IndirectKind : std::uint8_t {
draw = 0,
draw_indexed = 1,
dispatch = 2,
// D3D12_DISPATCH_MESH_ARGUMENTS. Created on a device with mesh shaders; ExecuteIndirect with it records nothing
// yet (the replay is #3777's), so a title that only creates such a signature at startup goes on.
// D3D12_DISPATCH_MESH_ARGUMENTS. Created on a device with mesh shaders; ExecuteIndirect with it records a mesh
// Draw that the replay draws with vkCmdDrawMeshTasksIndirect(Count)EXT after its clamp pass (d3d12_com.cpp,
// record_indirect), not an ExecuteIndirect command.
dispatch_mesh = 3,
};

Expand Down
3 changes: 3 additions & 0 deletions runtime/src/vulkan_replay.h
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,9 @@ inline VkDeviceSize indirect_record_size(IndirectKind kind) {
case IndirectKind::draw: return sizeof(VkDrawIndirectCommand);
case IndirectKind::draw_indexed: return sizeof(VkDrawIndexedIndirectCommand);
case IndirectKind::dispatch: return sizeof(VkDispatchIndirectCommand);
// A DISPATCH_MESH signature is recorded as a mesh Draw (record_indirect in d3d12_com.cpp), never as an
// ExecuteIndirect command, so one that reaches this is invalid: 0 makes the caller reject it.
case IndirectKind::dispatch_mesh: return 0;
}
return 0;
}
Expand Down
Loading