VkPhysicalDeviceSparseImageFormatInfo2
The VkPhysicalDeviceSparseImageFormatInfo2 structure is defined as:
typedef struct VkPhysicalDeviceSparseImageFormatInfo2 {
VkStructureType sType;
const void* pNext;
VkFormat format;
VkImageType type;
VkSampleCountFlagBits samples;
VkImageUsageFlags usage;
VkImageTiling tiling;
} VkPhysicalDeviceSparseImageFormatInfo2;
pub struct PhysicalDeviceSparseImageFormatInfo2 {
s_type: vk::StructureType,
p_next: *const c_void,
format: vk::Format,
type: vk::ImageType,
samples: vk::SampleCountFlagBits,
usage: vk::ImageUsageFlags,
tiling: vk::ImageTiling,
}
typedef VkPhysicalDeviceSparseImageFormatInfo2 VkPhysicalDeviceSparseImageFormatInfo2KHR;
type PhysicalDeviceSparseImageFormatInfo2KHR = vk::PhysicalDeviceSparseImageFormatInfo2;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.formatis the image format.typeis the dimensionality of the image.samplesis a VkSampleCountFlagBits value specifying the number of samples per texel.usageis a bitmask of VkImageUsageFlagBits describing the intended usage of the image.tilingis the tiling arrangement of the texel blocks in memory.
Only usage flags representable in VkImageUsageFlagBits are returned in
usage.
If the pNext chain includes a VkImageUsageFlags2CreateInfoKHR
structure, all usage flags are returned in
VkImageUsageFlags2CreateInfoKHR::usage.
Valid Usage
VUID-VkPhysicalDeviceSparseImageFormatInfo2-samples-01095
samples must be a valid VkSampleCountFlagBits value that is
set in VkImageFormatProperties::sampleCounts returned by
vkGetPhysicalDeviceImageFormatProperties with format,
type, tiling, and usage equal to those in this command
Valid Usage (Implicit)
VUID-VkPhysicalDeviceSparseImageFormatInfo2-sType-sType
sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2
VUID-VkPhysicalDeviceSparseImageFormatInfo2-pNext-pNext
pNext must be NULL or a pointer to a valid instance of VkImageUsageFlags2CreateInfoKHR
VUID-VkPhysicalDeviceSparseImageFormatInfo2-sType-unique
The sType value of each structure in the pNext chain must be unique
VUID-VkPhysicalDeviceSparseImageFormatInfo2-format-parameter
format must be a valid VkFormat value
VUID-VkPhysicalDeviceSparseImageFormatInfo2-type-parameter
type must be a valid VkImageType value
VUID-VkPhysicalDeviceSparseImageFormatInfo2-samples-parameter
samples must be a valid VkSampleCountFlagBits value
VUID-VkPhysicalDeviceSparseImageFormatInfo2-usage-parameter
usage must be a valid combination of VkImageUsageFlagBits values
VUID-VkPhysicalDeviceSparseImageFormatInfo2-usage-requiredbitmask
usage must not be 0
VUID-VkPhysicalDeviceSparseImageFormatInfo2-tiling-parameter
tiling must be a valid VkImageTiling value