Structures

VkMemoryBarrier

Structure specifying a global memory barrier

The VkMemoryBarrier structure is defined as:

typedef struct VkMemoryBarrier {
    VkStructureType sType;
    const void* pNext;
    VkAccessFlags srcAccessMask;
    VkAccessFlags dstAccessMask;
} VkMemoryBarrier;

The first access scope is limited to access types in the source access mask specified by srcAccessMask and, if a VkMemoryBarrierAccessFlags3KHR is passed in pNext, srcAccessMask3.

The second access scope is limited to access types in the destination access mask specified by dstAccessMask and, if a VkMemoryBarrierAccessFlags3KHR is passed in pNext, dstAccessMask3.

Valid Usage (Implicit)

VUID-VkMemoryBarrier-sType-sType

sType must be VK_STRUCTURE_TYPE_MEMORY_BARRIER

VUID-VkMemoryBarrier-srcAccessMask-parameter

srcAccessMask must be a valid combination of VkAccessFlagBits values

VUID-VkMemoryBarrier-dstAccessMask-parameter

dstAccessMask must be a valid combination of VkAccessFlagBits values