Enum
VkSpirvResourceTypeFlagBitsEXT
Bitmask specifying different SPIR-V resource declarations
Bits which can be set in
VkDescriptorSetAndBindingMappingEXT::resourceMask, are:
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,
} VkSpirvResourceTypeFlagBitsEXT;
pub struct SpirvResourceTypeFlagBitsEXT(u32);
impl SpirvResourceTypeFlagBitsEXT {
pub const ALL: Self = 0x7FFFFFFF;
pub const SAMPLER: Self = 0x00000001;
pub const SAMPLED_IMAGE: Self = 0x00000002;
pub const READ_ONLY_IMAGE: Self = 0x00000004;
pub const READ_WRITE_IMAGE: Self = 0x00000008;
pub const COMBINED_SAMPLED_IMAGE: Self = 0x00000010;
pub const UNIFORM_BUFFER: Self = 0x00000020;
pub const READ_ONLY_STORAGE_BUFFER: Self = 0x00000040;
pub const READ_WRITE_STORAGE_BUFFER: Self = 0x00000080;
}
VK_SPIRV_RESOURCE_TYPE_ALL_EXTspecifies that all resource declarations are included.VK_SPIRV_RESOURCE_TYPE_SAMPLER_BIT_EXTspecifiesOpTypeSamplervariables.VK_SPIRV_RESOURCE_TYPE_SAMPLED_IMAGE_BIT_EXTspecifiesOpTypeImagevariables with aSampledparameter of 1.VK_SPIRV_RESOURCE_TYPE_READ_ONLY_IMAGE_BIT_EXTspecifiesOpTypeImagevariables with aSampledparameter of 2 and decorated withNonWritable.VK_SPIRV_RESOURCE_TYPE_READ_WRITE_IMAGE_BIT_EXTspecifiesOpTypeImagevariables with aSampledparameter of 2 and not decorated withNonWritable.VK_SPIRV_RESOURCE_TYPE_COMBINED_SAMPLED_IMAGE_BIT_EXTspecifiesOpTypeSampledImagevariables.VK_SPIRV_RESOURCE_TYPE_UNIFORM_BUFFER_BIT_EXTspecifiesOpTypeStructvariables in theUniformstorage class decorated withBlockVK_SPIRV_RESOURCE_TYPE_READ_ONLY_STORAGE_BUFFER_BIT_EXTspecifiesOpTypeStructvariables either in theStorageBufferstorage class decorated withBlockor in theUniformstorage class decorated withBufferBlock, and decorated withNonWritableVK_SPIRV_RESOURCE_TYPE_READ_WRITE_STORAGE_BUFFER_BIT_EXTspecifiesOpTypeStructvariables either in theStorageBufferstorage class decorated withBlockor in theUniformstorage class decorated withBufferBlock, but not decorated withNonWritableVK_SPIRV_RESOURCE_TYPE_ACCELERATION_STRUCTURE_BIT_EXTspecifiesOpTypeAccelerationStructureKHRvariablesVK_SPIRV_RESOURCE_TYPE_TENSOR_BIT_ARMspecifiesOpTypeTensorARMvariables
Parent
VK_EXT_descriptor_heapType
Enum