namespace Brutal.VulkanApi { /// /// VkDescriptorMappingSourceConstantOffsetEXT - Structure specifying mapping resources to a constant heap index /// /// /// /// :refpage: VkDescriptorMappingSourceConstantOffsetEXT /// /// /// The VkDescriptorMappingSourceConstantOffsetEXT structure is defined /// as: /// /// /// // Provided by VK_EXT_descriptor_heap /// typedef struct VkDescriptorMappingSourceConstantOffsetEXT { /// uint32_t heapOffset; /// uint32_t heapArrayStride; /// const VkSamplerCreateInfo* pEmbeddedSampler; /// uint32_t samplerHeapOffset; /// uint32_t samplerHeapArrayStride; /// } VkDescriptorMappingSourceConstantOffsetEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] public unsafe partial struct VkDescriptorMappingSourceConstantOffsetEXT() { /// /// HeapOffset is a constant byte offset added to the heap address for the mapped resource or sampler. /// [FieldOffset(0)] public int HeapOffset; /// /// HeapArrayStride is a constant byte stride that multiplies the shader binding and array index. /// [FieldOffset(4)] 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(8)] public VkSamplerCreateInfo* EmbeddedSampler; /// /// SamplerHeapOffset is used only when mapping a combined image sampler, used in place of `heapOffset` to retrieve the sampler. /// [FieldOffset(16)] public int SamplerHeapOffset; /// /// SamplerHeapArrayStride is used only when mapping a combined image sampler, used in place of `heapArrayStride` to retrieve the sampler. /// [FieldOffset(20)] public int SamplerHeapArrayStride; } }