namespace Brutal.VulkanApi { /// /// VkDescriptorUpdateTemplateEntry - Describes a single descriptor update of the descriptor update template /// /// /// /// The VkDescriptorUpdateTemplateEntry structure is defined as: /// /// // Provided by VK_VERSION_1_1 /// typedef struct VkDescriptorUpdateTemplateEntry { /// uint32_t dstBinding; /// uint32_t dstArrayElement; /// uint32_t descriptorCount; /// VkDescriptorType descriptorType; /// size_t offset; /// size_t stride; /// } VkDescriptorUpdateTemplateEntry; /// /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] public partial struct VkDescriptorUpdateTemplateEntry() { /// /// DstBinding is the descriptor binding to update when using this descriptor update template. /// [FieldOffset(0)] public int DstBinding; /// /// DstArrayElement is the starting element in the array belonging to dstBinding. /// [FieldOffset(4)] public int DstArrayElement; /// /// DescriptorCount is the number of descriptors to update. If descriptorCount is greater than the number of remaining array elements in the destination binding, those affect consecutive bindings in a manner similar to VkWriteDescriptorSet above. /// [FieldOffset(8)] public int DescriptorCount; /// /// DescriptorType is a VkDescriptorType specifying the type of the descriptor. /// [FieldOffset(12)] public VkDescriptorType DescriptorType; /// /// Offset is the offset in bytes of the first binding in the raw data structure. /// [FieldOffset(16)] public nuint Offset; /// /// Stride is the stride in bytes between two consecutive array elements of the descriptor update information in the raw data structure. The actual pointer ptr for each array element j of update entry i is computed using the following formula: + [source,c++] ---- const char *ptr = (const char *)pData + pDescriptorUpdateEntries[i].offset + j * pDescriptorUpdateEntries[i].stride ---- + The stride is useful in case the bindings are stored in structs along with other data. /// [FieldOffset(24)] public nuint Stride; } }