namespace Brutal.VulkanApi { /// /// VkDescriptorMappingSourcePushIndexEXT - Structure specifying mapping resources to a heap index in push data /// /// /// /// :refpage: VkDescriptorMappingSourcePushIndexEXT /// /// /// The VkDescriptorMappingSourcePushIndexEXT structure is defined as: /// /// /// // Provided by VK_EXT_descriptor_heap /// typedef struct VkDescriptorMappingSourcePushIndexEXT { /// uint32_t heapOffset; /// uint32_t pushOffset; /// uint32_t heapIndexStride; /// uint32_t heapArrayStride; /// const VkSamplerCreateInfo* pEmbeddedSampler; /// VkBool32 useCombinedImageSamplerIndex; /// uint32_t samplerHeapOffset; /// uint32_t samplerPushOffset; /// uint32_t samplerHeapIndexStride; /// uint32_t samplerHeapArrayStride; /// } VkDescriptorMappingSourcePushIndexEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] public unsafe partial struct VkDescriptorMappingSourcePushIndexEXT() { /// /// 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 index into push data where an index into the heap for the mapped resource will be retrieved. /// [FieldOffset(4)] public int PushOffset; /// /// HeapIndexStride is a constant byte stride that multiplies the index in push data. /// [FieldOffset(8)] public int HeapIndexStride; /// /// HeapArrayStride is a constant byte stride that multiplies the shader binding and array index. /// [FieldOffset(12)] 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(16)] 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(24)] public Brutal.Bool32 UseCombinedImageSamplerIndex; /// /// SamplerHeapOffset is used only when mapping a combined image sampler, used in place of `heapOffset` to retrieve the sampler. /// [FieldOffset(28)] public int SamplerHeapOffset; /// /// SamplerPushOffset is used only when mapping a combined image sampler, used in place of `pushOffset` to retrieve the sampler. /// [FieldOffset(32)] public int SamplerPushOffset; /// /// SamplerHeapIndexStride is used only when mapping a combined image sampler, used in place of `heapIndexStride` to retrieve the sampler. /// [FieldOffset(36)] public int SamplerHeapIndexStride; /// /// SamplerHeapArrayStride is used only when mapping a combined image sampler, used in place of `heapArrayStride` to retrieve the sampler. /// [FieldOffset(40)] public int SamplerHeapArrayStride; } }