namespace Brutal.VulkanApi { /// /// VkBufferViewCreateInfo - Structure specifying parameters of a newly created buffer view /// /// /// /// The VkBufferViewCreateInfo structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkBufferViewCreateInfo { /// VkStructureType sType; /// const void* pNext; /// VkBufferViewCreateFlags flags; /// VkBuffer buffer; /// VkFormat format; /// VkDeviceSize offset; /// VkDeviceSize range; /// } VkBufferViewCreateInfo; /// /// [StructLayout(LayoutKind.Explicit, Size = 56)] public unsafe partial struct VkBufferViewCreateInfo() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.BufferViewCreateInfo; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is reserved for future use. /// [FieldOffset(16)] public VkBufferViewCreateFlags Flags; /// /// Buffer is a VkBuffer on which the view will be created. /// [FieldOffset(24)] public VkBuffer Buffer; /// /// Format is a VkFormat describing the format of the data elements in the buffer. /// [FieldOffset(32)] public VkFormat Format; /// /// Offset is an offset in bytes from the base address of the buffer. Accesses to the buffer view from shaders use addressing that is relative to this starting offset. /// [FieldOffset(40)] public ByteSize64 Offset; /// /// Range is a size in bytes of the buffer view. If range is equal to VK_WHOLE_SIZE, the range from offset to the end of the buffer is used. If VK_WHOLE_SIZE is used and the remaining size of the buffer is not a multiple of the texel block size^ of format, the nearest smaller multiple is used. /// [FieldOffset(48)] public ByteSize64 Range; } }