namespace Brutal.VulkanApi { /// /// VkDescriptorMappingSourceShaderRecordIndexEXT - Structure specifying mapping resources to a heap index in shader record data /// /// /// /// :refpage: VkDescriptorMappingSourceShaderRecordIndexEXT /// /// /// The VkDescriptorMappingSourceShaderRecordIndexEXT structure is defined /// as: /// /// /// // Provided by VK_EXT_descriptor_heap /// typedef struct VkDescriptorMappingSourceShaderRecordIndexEXT { /// uint32_t heapOffset; /// uint32_t shaderRecordOffset; /// uint32_t heapIndexStride; /// uint32_t heapArrayStride; /// const VkSamplerCreateInfo* pEmbeddedSampler; /// VkBool32 useCombinedImageSamplerIndex; /// uint32_t samplerHeapOffset; /// uint32_t samplerShaderRecordOffset; /// uint32_t samplerHeapIndexStride; /// uint32_t samplerHeapArrayStride; /// } VkDescriptorMappingSourceShaderRecordIndexEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] public unsafe partial struct VkDescriptorMappingSourceShaderRecordIndexEXT() { /// /// HeapOffset is a constant byte offset added to the heap address for the mapped resource or sampler. /// [FieldOffset(0)] public int HeapOffset; /// /// ShaderRecordOffset is an index into shader record data where an index into the heap for the mapped resource will be retrieved. /// [FieldOffset(4)] public int ShaderRecordOffset; /// /// HeapIndexStride is a constant byte stride that multiplies the index in shader record 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; /// /// SamplerShaderRecordOffset is used only when mapping a combined image sampler, used in place of `shaderRecordOffset` to retrieve the sampler. /// [FieldOffset(32)] public int SamplerShaderRecordOffset; /// /// 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; } }