Loads or input attachment reads from the resolve attachment are
performed as if using a
SamplerYcbcrConversionCreateInfo
with the following parameters:
If the attachment
member of an element of pColorAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
or
IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
If the attachment
member of an element of pResolveAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
or
IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
If the attachment
member of pDepthStencilAttachment is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL
or
IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
If the attachment
member of an element of pColorAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
or
IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
If the attachment
member of an element of pResolveAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
or
IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
If the attachment
member of an element of pInputAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL
or
IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL
If the attachment
member of an element of pColorAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,
IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL,
or
IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
If the attachment
member of an element of pResolveAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,
IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,
IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL,
or
IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
If the attachment
member of an element of pInputAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR
If the attachment
member of an element of pColorAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR
If the attachment
member of an element of pResolveAttachments is not
ATTACHMENT_UNUSED, its layout member
must not be
IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR
If flags includes
SUBPASS_DESCRIPTION_TILE_SHADING_APRON_BIT_QCOM,
the render pass must have been created with a
RenderPassTileShadingCreateInfoQCOM::tileApronSize
greater than (0,0)
inputAttachmentCount must be less than or equal to
maxPerStageDescriptorInputAttachments
colorAttachmentCount must be less than or equal to
maxColorAttachments
If the first use of an
attachment in this render pass is as an input attachment, and the
attachment is not also used as a color or depth/stencil attachment
in the same subpass, then loadOp must not be
ATTACHMENT_LOAD_OP_CLEAR
If the attachment
member of pDepthStencilAttachment is not
ATTACHMENT_UNUSED and its pNext chain
includes a
AttachmentReferenceStencilLayout
structure, the layout member of pDepthStencilAttachment must
not be
IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL
or
IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
pipelineBindPoint must be
PIPELINE_BIND_POINT_GRAPHICS
or
PIPELINE_BIND_POINT_SUBPASS_SHADING_HUAWEI
If
pResolveAttachments is not NULL, each resolve attachment that is
not ATTACHMENT_UNUSED must have a
sample count of
SAMPLE_COUNT_1_BIT
If the
externalFormatResolve
feature is not enabled and pResolveAttachments is not NULL, for
each resolve attachment that does not have the value
ATTACHMENT_UNUSED, the corresponding
color attachment must not have the value
ATTACHMENT_UNUSED
If the
nullColorAttachmentWithExternalFormatResolve
property is FALSE and
pResolveAttachments is not NULL, for each resolve attachment
that has a format of FORMAT_UNDEFINED,
the corresponding color attachment must not have the value
ATTACHMENT_UNUSED
If the
nullColorAttachmentWithExternalFormatResolve
property is TRUE and
pResolveAttachments is not NULL, for each resolve attachment
that has a format of FORMAT_UNDEFINED,
the corresponding color attachment must have the value
ATTACHMENT_UNUSED
If the
externalFormatResolve
feature is not enabled and pResolveAttachments is not NULL, for
each resolve attachment that is not
ATTACHMENT_UNUSED, the corresponding
color attachment must not have a sample count of
SAMPLE_COUNT_1_BIT
If the
externalFormatResolve
feature is not enabled, each element of pResolveAttachments must
have the same Format as its
corresponding color attachment
If the
multisampledRenderToSingleSampled
feature is not enabled, all attachments in pColorAttachments that
are not ATTACHMENT_UNUSED must have
the same sample count
All attachments
in pInputAttachments that are not
ATTACHMENT_UNUSED and any of the
following is true:
must have image formats whose
potential format features
contain at least
FORMAT_FEATURE_COLOR_ATTACHMENT_BIT
or
FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
All attachments
in pColorAttachments that are not
ATTACHMENT_UNUSED must have image
formats whose
potential format features
contain
FORMAT_FEATURE_COLOR_ATTACHMENT_BIT
All
attachments in pResolveAttachments that are not
ATTACHMENT_UNUSED and do not have an
image format of FORMAT_UNDEFINED must
have image formats whose
potential format features
contain
FORMAT_FEATURE_COLOR_ATTACHMENT_BIT
If
pDepthStencilAttachment is not NULL and the attachment is not
ATTACHMENT_UNUSED then it must have
an image format whose
potential format features
contain
FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
If the
linearColorAttachment
feature is enabled and the image is created with
IMAGE_TILING_LINEAR, all
attachments in pInputAttachments that are not
ATTACHMENT_UNUSED must have image
formats whose
potential format features
must contain
FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV
If the
linearColorAttachment
feature is enabled and the image is created with
IMAGE_TILING_LINEAR, all
attachments in pColorAttachments that are not
ATTACHMENT_UNUSED must have image
formats whose
potential format features
must contain
FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV
If the
linearColorAttachment
feature is enabled and the image is created with
IMAGE_TILING_LINEAR, all
attachments in pResolveAttachments that are not
ATTACHMENT_UNUSED must have image
formats whose
potential format features
must contain
FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV
If either of the following
is enabled:
all attachments in pColorAttachments that are not
ATTACHMENT_UNUSED must have a sample
count that is smaller than or equal to the sample count of
pDepthStencilAttachment if it is not
ATTACHMENT_UNUSED
If the pNext chain
includes a
MultisampledRenderToSingleSampledInfoEXT
structure with multisampledRenderToSingleSampledEnable equal to
TRUE, then all attachments in
pColorAttachments and pDepthStencilAttachment that are not
ATTACHMENT_UNUSED must have a sample
count that is either
SAMPLE_COUNT_1_BIT or
equal to
MultisampledRenderToSingleSampledInfoEXT::rasterizationSamples
If the pNext chain
includes a
MultisampledRenderToSingleSampledInfoEXT
structure with multisampledRenderToSingleSampledEnable equal to
TRUE, and pDepthStencilAttachment
is not NULL, does not have the value
ATTACHMENT_UNUSED, and has a sample
count of
SAMPLE_COUNT_1_BIT, the
pNext chain must also include a
SubpassDescriptionDepthStencilResolve
structure with pDepthStencilResolveAttachment that is either
NULL or has the value
ATTACHMENT_UNUSED
If none of the following are enabled:
all attachments in pDepthStencilAttachment and pColorAttachments
that are not ATTACHMENT_UNUSED must
have the same sample count
Each element of
pPreserveAttachments must not be
ATTACHMENT_UNUSED
Each element
of pPreserveAttachments must not also be an element of any other
member of the subpass description
If any attachment is used
by more than one AttachmentReference2 member, then each use must
use the same layout
If flags includes
SUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX,
it must also include
SUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX
If the attachment
member of any element of pInputAttachments is not
ATTACHMENT_UNUSED, then the
aspectMask member must be a valid combination of
ImageAspectFlagBits
If the attachment
member of any element of pInputAttachments is not
ATTACHMENT_UNUSED, then the
aspectMask member must not be 0
If the attachment
member of any element of pInputAttachments is not
ATTACHMENT_UNUSED, then the
aspectMask member must not include
IMAGE_ASPECT_METADATA_BIT
If the attachment
member of any element of pInputAttachments is not
ATTACHMENT_UNUSED, then the
aspectMask member must not include
VK_IMAGE_ASPECT_MEMORY_PLANE_i_BIT_EXT for any index i
An
attachment must not be used in both pDepthStencilAttachment and
pColorAttachments
If the
multiview
feature is not enabled, viewMask must be 0
The index of the most
significant bit in viewMask must be less than
maxMultiviewViewCount
If the
externalFormatResolve
feature is enabled, pResolveAttachments is not NULL, and
colorAttachmentCount is not 1, any element of
pResolveAttachments that is not
ATTACHMENT_UNUSED, must not have a
format of FORMAT_UNDEFINED
If the
externalFormatResolve
feature is enabled, pResolveAttachments is not NULL, any element
of pResolveAttachments is not
ATTACHMENT_UNUSED and has a format of
FORMAT_UNDEFINED, and the corresponding
element of pColorAttachments is not
ATTACHMENT_UNUSED, the color attachment
must have a samples value of 1
If the
externalFormatResolve
feature is enabled, pResolveAttachments is not NULL, and any
element of pResolveAttachments is not
ATTACHMENT_UNUSED and has a format of
FORMAT_UNDEFINED, viewMask must be
0
If the
externalFormatResolve
feature is enabled, pResolveAttachments is not NULL, and any
element of pResolveAttachments is not
ATTACHMENT_UNUSED and has a format of
FORMAT_UNDEFINED,
FragmentShadingRateAttachmentInfoKHR::pFragmentShadingRateAttachment
must either be NULL or a AttachmentReference2 structure with
an attachment value of
ATTACHMENT_UNUSED
If the
externalFormatResolve
feature is enabled, pResolveAttachments is not NULL, and any
element of pResolveAttachments is not
ATTACHMENT_UNUSED and has a format of
FORMAT_UNDEFINED, elements of
pInputAttachments referencing either a color attachment or resolve
attachment used in this subpass must not include
VK_IMAGE_ASPECT_PLANE_i_BIT for any index i in its aspectMask
If flags includes
SUBPASS_DESCRIPTION_CUSTOM_RESOLVE_BIT_EXT,
and if pResolveAttachments is not NULL, then each resolve
attachment must be ATTACHMENT_UNUSED
If flags includes
SUBPASS_DESCRIPTION_CUSTOM_RESOLVE_BIT_EXT,
and if pDepthStencilResolveAttachment is not NULL, then the
depth/stencil resolve attachment must be
ATTACHMENT_UNUSED
If flags includes
SUBPASS_DESCRIPTION_CUSTOM_RESOLVE_BIT_EXT,
then the subpass must be the last subpass in a subpass dependency
chain