namespace Brutal.VulkanApi { /// /// VkDescriptorMappingSourceIndirectIndexEXT - Structure specifying mapping resources to a heap index in indirect data /// /// /// /// :refpage: VkDescriptorMappingSourceIndirectIndexEXT /// /// /// The VkDescriptorMappingSourceIndirectIndexEXT structure is defined as: /// /// /// // Provided by VK_EXT_descriptor_heap /// typedef struct VkDescriptorMappingSourceIndirectIndexEXT { /// uint32_t heapOffset; /// uint32_t pushOffset; /// uint32_t addressOffset; /// uint32_t heapIndexStride; /// uint32_t heapArrayStride; /// const VkSamplerCreateInfo* pEmbeddedSampler; /// VkBool32 useCombinedImageSamplerIndex; /// uint32_t samplerHeapOffset; /// uint32_t samplerPushOffset; /// uint32_t samplerAddressOffset; /// uint32_t samplerHeapIndexStride; /// uint32_t samplerHeapArrayStride; /// } VkDescriptorMappingSourceIndirectIndexEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 56)] public unsafe partial struct VkDescriptorMappingSourceIndirectIndexEXT() { /// /// HeapOffset is a constant byte offset added to the heap address for the mapped resource or sampler. /// [FieldOffset(0)] public int HeapOffset; /// /// PushOffset is an offset into push data where an the indirect address will be. /// [FieldOffset(4)] public int PushOffset; /// /// AddressOffset is an index into the address in push data where an index into the heap for the mapped resource will be retrieved. /// [FieldOffset(8)] public int AddressOffset; /// /// HeapIndexStride is a constant byte stride that multiplies the index in indirect data. /// [FieldOffset(12)] public int HeapIndexStride; /// /// HeapArrayStride is a constant byte stride that multiplies the shader binding and array index. /// [FieldOffset(16)] public int HeapArrayStride; /// /// EmbeddedSampler is an optional VkSamplerCreateInfo structure specifying a sampler to embed into the shader, in place of looking the sampler up in a heap. /// [FieldOffset(24)] public VkSamplerCreateInfo* EmbeddedSampler; /// /// UseCombinedImageSamplerIndex specifies whether the generated index value will be decoded as two packed indices if the mapped resource is an OpTypeSampledImage. /// [FieldOffset(32)] public Brutal.Bool32 UseCombinedImageSamplerIndex; /// /// SamplerHeapOffset is used only when mapping a combined image sampler, used in place of `heapOffset` to retrieve the sampler. /// [FieldOffset(36)] public int SamplerHeapOffset; /// /// SamplerPushOffset is used only when mapping a combined image sampler, used in place of `pushOffset` to retrieve the sampler. /// [FieldOffset(40)] public int SamplerPushOffset; /// /// SamplerAddressOffset is used only when mapping a combined image sampler, used in place of `addressOffset` to retrieve the sampler. /// [FieldOffset(44)] public int SamplerAddressOffset; /// /// SamplerHeapIndexStride is used only when mapping a combined image sampler, used in place of `heapIndexStride` to retrieve the sampler. /// [FieldOffset(48)] public int SamplerHeapIndexStride; /// /// SamplerHeapArrayStride is used only when mapping a combined image sampler, used in place of `heapArrayStride` to retrieve the sampler. /// [FieldOffset(52)] public int SamplerHeapArrayStride; } }