C Specification
The VkResolveImageInfo2 structure is defined as:
// Provided by VK_VERSION_1_3
typedef struct VkResolveImageInfo2 {
VkStructureType sType;
const void* pNext;
VkImage srcImage;
VkImageLayout srcImageLayout;
VkImage dstImage;
VkImageLayout dstImageLayout;
uint32_t regionCount;
const VkImageResolve2* pRegions;
} VkResolveImageInfo2;
// Provided by VK_KHR_copy_commands2
// Equivalent to VkResolveImageInfo2
typedef VkResolveImageInfo2 VkResolveImageInfo2KHR;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
srcImageis the source image. -
srcImageLayoutis the layout of the source image subresources for the resolve. -
dstImageis the destination image. -
dstImageLayoutis the layout of the destination image subresources for the resolve. -
regionCountis the number of regions to resolve. -
pRegionsis a pointer to an array of VkImageResolve2 structures specifying the regions to resolve.
Description
If the source format is a floating-point or normalized type, the resolve
mode is chosen as implementation-dependent behavior, unless
VkResolveImageModeInfoKHR is included in the pNext chain, in
which case it is defined by
VkResolveImageModeInfoKHR::resolveMode.
If the resolve mode requires to calculate the result from multiple samples,
such as by computing an average or weighted average of the samples, the
values for each pixel are resolved with implementation-defined numerical
precision.
If the numeric format of srcImage uses sRGB
encoding and the resolve mode requires the implementation to convert the
samples to floating-point to perform the calculations, the implementation
should convert samples from nonlinear to linear before resolving the
samples as described in the “sRGB EOTF” section of the
Khronos Data Format Specification.
In this case, the implementation must convert the linear averaged value to
nonlinear before writing the resolved result to dstImage.
If the maintenance10 feature is enabled,
whether a nonlinear to linear conversion happens for sRGB encoded resolve is
controlled by
resolveSrgbFormatAppliesTransferFunction.
If VkResolveImageModeInfoKHR is included in the pNext chain,
this default behavior can be overridden with
VK_RESOLVE_IMAGE_SKIP_TRANSFER_FUNCTION_BIT_KHR or
VK_RESOLVE_IMAGE_ENABLE_TRANSFER_FUNCTION_BIT_KHR flags.
If the source format is an integer type, a single sample’s value is selected
for each pixel, unless VkResolveImageModeInfoKHR is included in the
pNext chain, in which case it is defined by
VkResolveImageModeInfoKHR::resolveMode or
VkResolveImageModeInfoKHR::stencilResolveMode depending on which
aspect is being resolved.
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.