Module indirect

Module indirect 

Source
Expand description

Contents of this file are to help emulate gl_InstanceIndex on DX12. Metal follows the same convention as vulkan.

Structs§

RafxDrawIndexedIndirectCommandWithPushConstant
RafxDrawIndirectCommandWithPushConstant
RafxIndexedIndirectCommandEncoder
Helper object for writing indirect draws into a buffer. Abstracts over DX12 requiring an extra 4 bytes to set a push constant
RafxIndexedIndirectCommandSignature
A helper object for doing indirect draw on DX12/Metal/Vulkan in a compatible way. We supply a push constant on DX12 only to emulate gl_InstanceIndex on DX12. This helper object is mostly a no-op for vulkan/metal.

Functions§

indexed_indirect_command_size
indirect_command_size