namespace Brutal.VulkanApi { /// /// VkGeneratedCommandsInfoEXT - Structure specifying parameters for the generation of commands /// /// /// /// :refpage: /// /// /// The VkGeneratedCommandsInfoEXT is defined as: /// /// /// // Provided by VK_EXT_device_generated_commands /// typedef struct VkGeneratedCommandsInfoEXT { /// VkStructureType sType; /// const void* pNext; /// VkShaderStageFlags shaderStages; /// VkIndirectExecutionSetEXT indirectExecutionSet; /// VkIndirectCommandsLayoutEXT indirectCommandsLayout; /// VkDeviceAddress indirectAddress; /// VkDeviceSize indirectAddressSize; /// VkDeviceAddress preprocessAddress; /// VkDeviceSize preprocessSize; /// uint32_t maxSequenceCount; /// VkDeviceAddress sequenceCountAddress; /// uint32_t maxDrawCount; /// } VkGeneratedCommandsInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 96)] public unsafe partial struct VkGeneratedCommandsInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.GeneratedCommandsInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// ShaderStages is the mask of shader stages used by the commands. /// [FieldOffset(16)] public VkShaderStageFlags ShaderStages; /// /// IndirectExecutionSet is the indirect execution set to be used for binding shaders. /// [FieldOffset(24)] public VkIndirectExecutionSetEXT IndirectExecutionSet; /// /// IndirectCommandsLayout is the VkIndirectCommandsLayoutEXT that specifies the command sequence data. /// [FieldOffset(32)] public VkIndirectCommandsLayoutEXT IndirectCommandsLayout; /// /// IndirectAddress is an address that holds the indirect buffer data. /// [FieldOffset(40)] public VkDeviceAddress IndirectAddress; /// /// IndirectAddressSize is the size in bytes of indirect buffer data starting at indirectAddress. /// [FieldOffset(48)] public ByteSize64 IndirectAddressSize; /// /// PreprocessAddress specifies a physical address of the VkBuffer used for preprocessing the input data for execution. If this structure is used with vkCmdExecuteGeneratedCommandsEXT with its isPreprocessed set to VK_TRUE, then the preprocessing step is skipped but data in this address may: still be modified. The contents and the layout of this address are opaque to applications and must not be modified outside functions related to device-generated commands or copied to another buffer for reuse. /// [FieldOffset(56)] public VkDeviceAddress PreprocessAddress; /// /// PreprocessSize is the maximum byte size within preprocessAddress that is available for preprocessing. /// [FieldOffset(64)] public ByteSize64 PreprocessSize; /// /// MaxSequenceCount is used to determine the number of sequences to execute. /// [FieldOffset(72)] public int MaxSequenceCount; /// /// SequenceCountAddress specifies an optional physical address of a single uint32_t value containing the requested number of sequences to execute. /// [FieldOffset(80)] public VkDeviceAddress SequenceCountAddress; /// /// MaxDrawCount is the maximum number of indirect draws that can be executed by any COUNT-type multi-draw indirect tokens. The draw count in the indirect buffer is clamped to this value for these token types. /// [FieldOffset(88)] public int MaxDrawCount; } }