Structures

VkMemoryRangeBarriersInfoKHR

Structure specifying memory range barriers

The VkMemoryRangeBarriersInfoKHR structure is defined as:

typedef struct VkMemoryRangeBarriersInfoKHR {
    VkStructureType sType;
    const void* pNext;
    uint32_t memoryRangeBarrierCount;
    const VkMemoryRangeBarrierKHR* pMemoryRangeBarriers;
} VkMemoryRangeBarriersInfoKHR;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • memoryRangeBarrierCount is the length of the pMemoryRangeBarriers array
  • pMemoryRangeBarriers is a pointer to an array of VkMemoryRangeBarrierKHR structures defining memory dependencies between accesses to specified memory ranges.

When this structure is included in the pNext chain of VkDependencyInfo, it defines a set of memory dependencies, as well as queue family ownership transfer operations, for a specified set of memory ranges.

If this structure is not included in the pNext chain of VkDependencyInfo, it is equivalent to specifying it with a memoryRangeBarrierCount of 0.

Each member of pMemoryRangeBarriers defines a separate memory dependency.

Valid Usage (Implicit)

VUID-VkMemoryRangeBarriersInfoKHR-sType-sType

sType must be VK_STRUCTURE_TYPE_MEMORY_RANGE_BARRIERS_INFO_KHR

VUID-VkMemoryRangeBarriersInfoKHR-pMemoryRangeBarriers-parameter

If memoryRangeBarrierCount is not 0, pMemoryRangeBarriers must be a valid pointer to an array of memoryRangeBarrierCount valid VkMemoryRangeBarrierKHR structures