Structures
VkPhysicalDeviceRobustness2FeaturesEXT
Structure describing the out-of-bounds behavior for an implementation
The VkPhysicalDeviceRobustness2FeaturesEXT
structure is defined as:
typedef struct VkPhysicalDeviceRobustness2FeaturesEXT {
VkStructureType sType;
void* pNext;
VkBool32 robustBufferAccess2;
VkBool32 robustImageAccess2;
VkBool32 nullDescriptor;
} VkPhysicalDeviceRobustness2FeaturesEXT;
This structure describes the following features:
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.-
robustBufferAccess2
indicates whether buffer accesses are tightly bounds-checked against the range of the descriptor. Uniform buffers must be bounds-checked to the range of the descriptor, where the range is rounded up to a multiple ofrobustUniformBufferAccessSizeAlignment
. Storage buffers must be bounds-checked to the range of the descriptor, where the range is rounded up to a multiple ofrobustStorageBufferAccessSizeAlignment
. Out of bounds buffer loads will return zero values, and image load, sample, and atomic operations from texel buffers will have (0,0,1) values inserted for missing G, B, or A components based on the format. -
robustImageAccess2
indicates whether image accesses are tightly bounds-checked against the dimensions of the image view. Out of bounds image load, sample, and atomic operations from images will return zero values, with (0,0,1) values inserted for missing G, B, or A components based on the format. -
nullDescriptor
indicates whether descriptors can be written with a VK_NULL_HANDLE resource or view, which are considered valid to access and act as if the descriptor were bound to nothing.
If the VkPhysicalDeviceRobustness2FeaturesEXT
structure is included in the pNext
chain of the
VkPhysicalDeviceFeatures2 structure passed to
vkGetPhysicalDeviceFeatures2, it is filled in to indicate whether each
corresponding feature is supported.
VkPhysicalDeviceRobustness2FeaturesEXT
can also be used in the pNext
chain of
VkDeviceCreateInfo to selectively enable these features.
Valid Usage
VUID-VkPhysicalDeviceRobustness2FeaturesEXT-robustBufferAccess2-04000
If robustBufferAccess2
is enabled then
robustBufferAccess
must also be
enabled
Valid Usage (Implicit)
VUID-VkPhysicalDeviceRobustness2FeaturesEXT-sType-sType
sType
must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT