Structures
VkPhysicalDeviceMaintenance10PropertiesKHR
Structure describing various implementation-defined properties introduced with VK_KHR_maintenance10
The VkPhysicalDeviceMaintenance10PropertiesKHR structure is defined
as:
typedef struct VkPhysicalDeviceMaintenance10PropertiesKHR {
VkStructureType sType;
void* pNext;
VkBool32 rgba4OpaqueBlackSwizzled;
VkBool32 resolveSrgbFormatAppliesTransferFunction;
VkBool32 resolveSrgbFormatSupportsTransferFunctionControl;
} VkPhysicalDeviceMaintenance10PropertiesKHR;
pub struct PhysicalDeviceMaintenance10PropertiesKHR {
s_type: vk::StructureType,
p_next: *mut c_void,
rgba4_opaque_black_swizzled: vk::Bool32,
resolve_srgb_format_applies_transfer_function: vk::Bool32,
resolve_srgb_format_supports_transfer_function_control: vk::Bool32,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.-
rgba4OpaqueBlackSwizzledindicates whether correct swizzling is applied to the opaque black border color when using either theVK_FORMAT_B4G4R4A4_UNORM_PACK16orVK_FORMAT_R4G4B4A4_UNORM_PACK16format. If it isVK_TRUE, the implementation will correctly produce an opaque black border color with these formats. If it isVK_FALSE, the implementation may swap the first channel with the alpha channel for the border color when sampling. resolveSrgbFormatAppliesTransferFunctionindicates whether resolving a multi-sampled sRGB format to single-sampled sRGB by a weighted average converts the samples to linear before averaging. This applies to both attachment resolves in a render pass and standalone resolve commands. IfVK_TRUE, implementation always converts to linear before averaging unless overridden. IfVK_FALSE, implementation never converts to linear before averaging unless overridden.resolveSrgbFormatSupportsTransferFunctionControlindicates whether the implementation supports overriding the default behavior inresolveSrgbFormatAppliesTransferFunctionin render passes and vkCmdResolveImage2.
Implementations supporting maintenance10should set resolveSrgbFormatAppliesTransferFunction to VK_TRUE.
If the VkPhysicalDeviceMaintenance10PropertiesKHR structure is included in the pNext chain of the
VkPhysicalDeviceProperties2 structure passed to
vkGetPhysicalDeviceProperties2, it is filled in with each
corresponding implementation-dependent property.
Valid Usage (Implicit)
VUID-VkPhysicalDeviceMaintenance10PropertiesKHR-sType-sType
sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_10_PROPERTIES_KHR