namespace Brutal.VulkanApi { /// /// VkBufferMemoryBarrier2 - Structure specifying a buffer memory barrier /// /// /// /// :refpage: VkBufferMemoryBarrier2 /// /// /// The VkBufferMemoryBarrier2 structure is defined as: /// /// /// // Provided by VK_VERSION_1_3 /// typedef struct VkBufferMemoryBarrier2 { /// VkStructureType sType; /// const void* pNext; /// VkPipelineStageFlags2 srcStageMask; /// VkAccessFlags2 srcAccessMask; /// VkPipelineStageFlags2 dstStageMask; /// VkAccessFlags2 dstAccessMask; /// uint32_t srcQueueFamilyIndex; /// uint32_t dstQueueFamilyIndex; /// VkBuffer buffer; /// VkDeviceSize offset; /// VkDeviceSize size; /// } VkBufferMemoryBarrier2; /// /// [StructLayout(LayoutKind.Explicit, Size = 80)] public unsafe partial struct VkBufferMemoryBarrier2() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.BufferMemoryBarrier2; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// SrcStageMask is a VkPipelineStageFlags2 mask of pipeline stages to be included in the first synchronization scope^. /// [FieldOffset(16)] public VkPipelineStageFlags2 SrcStageMask; /// /// SrcAccessMask is a VkAccessFlags2 mask of access flags to be included in the first access scope^. /// [FieldOffset(24)] public VkAccessFlags2 SrcAccessMask; /// /// DstStageMask is a VkPipelineStageFlags2 mask of pipeline stages to be included in the second synchronization scope^. /// [FieldOffset(32)] public VkPipelineStageFlags2 DstStageMask; /// /// DstAccessMask is a VkAccessFlags2 mask of access flags to be included in the second access scope^. /// [FieldOffset(40)] public VkAccessFlags2 DstAccessMask; /// /// SrcQueueFamilyIndex is the source queue family for a queue family ownership transfer^. /// [FieldOffset(48)] public int SrcQueueFamilyIndex; /// /// DstQueueFamilyIndex is the destination queue family for a queue family ownership transfer^. /// [FieldOffset(52)] public int DstQueueFamilyIndex; /// /// Buffer is a handle to the buffer whose backing memory is affected by the barrier. /// [FieldOffset(56)] public VkBuffer Buffer; /// /// Offset is an offset in bytes into the backing memory for buffer; this is relative to the base offset as bound to the buffer (see vkBindBufferMemory). /// [FieldOffset(64)] public ByteSize64 Offset; /// /// Size is a size in bytes of the affected area of backing memory for buffer, or VK_WHOLE_SIZE to use the range from offset to the end of the buffer. /// [FieldOffset(72)] public ByteSize64 Size; } }