namespace Brutal.VulkanApi { /// /// VkBufferMemoryBarrier - Structure specifying a buffer memory barrier /// /// /// /// :refpage: VkBufferMemoryBarrier /// /// /// The VkBufferMemoryBarrier structure is defined as: /// /// /// // Provided by VK_VERSION_1_0 /// typedef struct VkBufferMemoryBarrier { /// VkStructureType sType; /// const void* pNext; /// VkAccessFlags srcAccessMask; /// VkAccessFlags dstAccessMask; /// uint32_t srcQueueFamilyIndex; /// uint32_t dstQueueFamilyIndex; /// VkBuffer buffer; /// VkDeviceSize offset; /// VkDeviceSize size; /// } VkBufferMemoryBarrier; /// /// [StructLayout(LayoutKind.Explicit, Size = 56)] public unsafe partial struct VkBufferMemoryBarrier() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.BufferMemoryBarrier; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// SrcAccessMask is a bitmask of VkAccessFlags specifying a source access mask^. /// [FieldOffset(16)] public VkAccessFlags SrcAccessMask; /// /// DstAccessMask is a bitmask of VkAccessFlags specifying a destination access mask^. /// [FieldOffset(20)] public VkAccessFlags DstAccessMask; /// /// SrcQueueFamilyIndex is the source queue family for a queue family ownership transfer^. /// [FieldOffset(24)] public int SrcQueueFamilyIndex; /// /// DstQueueFamilyIndex is the destination queue family for a queue family ownership transfer^. /// [FieldOffset(28)] public int DstQueueFamilyIndex; /// /// Buffer is a handle to the buffer whose backing memory is affected by the barrier. /// [FieldOffset(32)] 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(40)] 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(48)] public ByteSize64 Size; } }