C Specification
Bits which can be set in
VkDescriptorSetAndBindingMappingEXT::resourceMask, are:
// Provided by VK_EXT_descriptor_heap
typedef enum VkSpirvResourceTypeFlagBitsEXT {
VK_SPIRV_RESOURCE_TYPE_ALL_EXT = 0x7FFFFFFF,
VK_SPIRV_RESOURCE_TYPE_SAMPLER_BIT_EXT = 0x00000001,
VK_SPIRV_RESOURCE_TYPE_SAMPLED_IMAGE_BIT_EXT = 0x00000002,
VK_SPIRV_RESOURCE_TYPE_READ_ONLY_IMAGE_BIT_EXT = 0x00000004,
VK_SPIRV_RESOURCE_TYPE_READ_WRITE_IMAGE_BIT_EXT = 0x00000008,
VK_SPIRV_RESOURCE_TYPE_COMBINED_SAMPLED_IMAGE_BIT_EXT = 0x00000010,
VK_SPIRV_RESOURCE_TYPE_UNIFORM_BUFFER_BIT_EXT = 0x00000020,
VK_SPIRV_RESOURCE_TYPE_READ_ONLY_STORAGE_BUFFER_BIT_EXT = 0x00000040,
VK_SPIRV_RESOURCE_TYPE_READ_WRITE_STORAGE_BUFFER_BIT_EXT = 0x00000080,
// Provided by VK_EXT_descriptor_heap with VK_KHR_ray_tracing_pipeline or VK_NV_ray_tracing
VK_SPIRV_RESOURCE_TYPE_ACCELERATION_STRUCTURE_BIT_EXT = 0x00000100,
// Provided by VK_EXT_descriptor_heap with VK_ARM_tensors
VK_SPIRV_RESOURCE_TYPE_TENSOR_BIT_ARM = 0x00000200,
} VkSpirvResourceTypeFlagBitsEXT;
Description
-
VK_SPIRV_RESOURCE_TYPE_ALL_EXT specifies that all resource declarations are included.
-
VK_SPIRV_RESOURCE_TYPE_SAMPLER_BIT_EXT specifies
OpTypeSamplervariables. -
VK_SPIRV_RESOURCE_TYPE_SAMPLED_IMAGE_BIT_EXT specifies
OpTypeImagevariables with aSampledparameter of 1. -
VK_SPIRV_RESOURCE_TYPE_READ_ONLY_IMAGE_BIT_EXT specifies
OpTypeImagevariables with aSampledparameter of 2 and decorated withNonWritable. -
VK_SPIRV_RESOURCE_TYPE_READ_WRITE_IMAGE_BIT_EXT specifies
OpTypeImagevariables with aSampledparameter of 2 and not decorated withNonWritable. -
VK_SPIRV_RESOURCE_TYPE_COMBINED_SAMPLED_IMAGE_BIT_EXT specifies
OpTypeSampledImagevariables. -
VK_SPIRV_RESOURCE_TYPE_UNIFORM_BUFFER_BIT_EXT specifies
OpTypeStructvariables in theUniformstorage class decorated withBlock -
VK_SPIRV_RESOURCE_TYPE_READ_ONLY_STORAGE_BUFFER_BIT_EXT specifies
OpTypeStructvariables either in theStorageBufferstorage class decorated withBlockor in theUniformstorage class decorated withBufferBlock, and decorated withNonWritable -
VK_SPIRV_RESOURCE_TYPE_READ_WRITE_STORAGE_BUFFER_BIT_EXT specifies
OpTypeStructvariables either in theStorageBufferstorage class decorated withBlockor in theUniformstorage class decorated withBufferBlock, but not decorated withNonWritable -
VK_SPIRV_RESOURCE_TYPE_ACCELERATION_STRUCTURE_BIT_EXT specifies
OpTypeAccelerationStructureKHRvariables -
VK_SPIRV_RESOURCE_TYPE_TENSOR_BIT_ARM specifies
OpTypeTensorARMvariables
Document Notes
For more information, see the Vulkan Specification.
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.