namespace Brutal.VulkanApi { /// /// VkBufferCreateInfo - Structure specifying the parameters of a newly created buffer object /// /// /// /// :refpage: VkBufferCreateInfo /// /// /// The VkBufferCreateInfo structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkBufferCreateInfo { /// VkStructureType sType; /// const void* pNext; /// VkBufferCreateFlags flags; /// VkDeviceSize size; /// VkBufferUsageFlags usage; /// VkSharingMode sharingMode; /// uint32_t queueFamilyIndexCount; /// const uint32_t* pQueueFamilyIndices; /// } VkBufferCreateInfo; /// /// [StructLayout(LayoutKind.Explicit, Size = 56)] public unsafe partial struct VkBufferCreateInfo() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.BufferCreateInfo; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is a bitmask of VkBufferCreateFlags specifying additional parameters of the buffer. /// [FieldOffset(16)] public VkBufferCreateFlags Flags; /// /// Size is the size in bytes of the buffer to be created. /// [FieldOffset(24)] public ByteSize64 Size; /// /// Usage is a bitmask of VkBufferUsageFlags specifying allowed usages of the buffer. /// [FieldOffset(32)] public VkBufferUsageFlags Usage; /// /// SharingMode is a VkSharingMode value specifying the sharing mode of the buffer when it will be accessed by multiple queue families. /// [FieldOffset(36)] public VkSharingMode SharingMode; /// /// QueueFamilyIndexCount is the number of entries in the pQueueFamilyIndices array. /// [FieldOffset(40)] public int QueueFamilyIndexCount; /// /// QueueFamilyIndices is a pointer to an array of queue families that will access this buffer. It is ignored if sharingMode is not VK_SHARING_MODE_CONCURRENT. /// [FieldOffset(48)] public int* QueueFamilyIndices; } }