brutal/Brutal.Vulkan/Generated/Structs/VkDescriptorMappingSourceIndirectIndexEXT.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

106 lines
4.9 KiB
C#

namespace Brutal.VulkanApi
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkDescriptorMappingSourceIndirectIndexEXT.html">VkDescriptorMappingSourceIndirectIndexEXT</see> - Structure specifying mapping resources to a heap index in indirect data
/// </summary>
/// <remarks>
/// <para>
/// :refpage: VkDescriptorMappingSourceIndirectIndexEXT
/// </para>
/// <para>
/// The <c>VkDescriptorMappingSourceIndirectIndexEXT</c> structure is defined as:
/// </para>
/// <code>
/// // 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;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 56)]
public unsafe partial struct VkDescriptorMappingSourceIndirectIndexEXT()
{
/// <summary>
/// <c>HeapOffset</c> is a constant byte offset added to the heap address for the mapped resource or sampler.
/// </summary>
[FieldOffset(0)]
public int HeapOffset;
/// <summary>
/// <c>PushOffset</c> is an offset into push data where an the indirect address will be.
/// </summary>
[FieldOffset(4)]
public int PushOffset;
/// <summary>
/// <c>AddressOffset</c> is an index into the address in push data where an index into the heap for the mapped resource will be retrieved.
/// </summary>
[FieldOffset(8)]
public int AddressOffset;
/// <summary>
/// <c>HeapIndexStride</c> is a constant byte stride that multiplies the index in indirect data.
/// </summary>
[FieldOffset(12)]
public int HeapIndexStride;
/// <summary>
/// <c>HeapArrayStride</c> is a constant byte stride that multiplies the shader binding and array index.
/// </summary>
[FieldOffset(16)]
public int HeapArrayStride;
/// <summary>
/// <c>EmbeddedSampler</c> is an optional <c>VkSamplerCreateInfo</c> structure specifying a sampler to embed into the shader, in place of looking the sampler up in a heap.
/// </summary>
[FieldOffset(24)]
public VkSamplerCreateInfo* EmbeddedSampler;
/// <summary>
/// <c>UseCombinedImageSamplerIndex</c> specifies whether the generated index value will be decoded as two packed indices if the mapped resource is an <c>OpTypeSampledImage</c>.
/// </summary>
[FieldOffset(32)]
public Brutal.Bool32 UseCombinedImageSamplerIndex;
/// <summary>
/// <c>SamplerHeapOffset</c> is used only when mapping a combined image sampler, used in place of `heapOffset` to retrieve the sampler.
/// </summary>
[FieldOffset(36)]
public int SamplerHeapOffset;
/// <summary>
/// <c>SamplerPushOffset</c> is used only when mapping a combined image sampler, used in place of `pushOffset` to retrieve the sampler.
/// </summary>
[FieldOffset(40)]
public int SamplerPushOffset;
/// <summary>
/// <c>SamplerAddressOffset</c> is used only when mapping a combined image sampler, used in place of `addressOffset` to retrieve the sampler.
/// </summary>
[FieldOffset(44)]
public int SamplerAddressOffset;
/// <summary>
/// <c>SamplerHeapIndexStride</c> is used only when mapping a combined image sampler, used in place of `heapIndexStride` to retrieve the sampler.
/// </summary>
[FieldOffset(48)]
public int SamplerHeapIndexStride;
/// <summary>
/// <c>SamplerHeapArrayStride</c> is used only when mapping a combined image sampler, used in place of `heapArrayStride` to retrieve the sampler.
/// </summary>
[FieldOffset(52)]
public int SamplerHeapArrayStride;
}
}