summaryrefslogtreecommitdiff
path: root/chapters/renderpass.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'chapters/renderpass.adoc')
-rw-r--r--chapters/renderpass.adoc95
1 files changed, 66 insertions, 29 deletions
diff --git a/chapters/renderpass.adoc b/chapters/renderpass.adoc
index 4a71b472..82512b5a 100644
--- a/chapters/renderpass.adoc
+++ b/chapters/renderpass.adoc
@@ -128,14 +128,31 @@ writes to the corresponding location by a fragment are discarded.
* [[VUID-VkRenderingInfo-viewMask-06069]]
If pname:viewMask is `0`, pname:layerCount must: not be `0`
* [[VUID-VkRenderingInfo-multisampledRenderToSingleSampled-06857]]
- If none of the `apiext:VK_AMD_mixed_attachment_samples` extension, the
- `apiext:VK_NV_framebuffer_mixed_samples` extension, or the
- <<features-multisampledRenderToSingleSampled,
- pname:multisampledRenderToSingleSampled>> feature are enabled,
pname:imageView members of pname:pDepthAttachment,
pname:pStencilAttachment, and elements of pname:pColorAttachments that
are not dlink:VK_NULL_HANDLE must: have been created with the same
pname:sampleCount
+ifdef::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples,VK_EXT_multisampled_render_to_single_sampled[]
+ , if none of the following are enabled:
+ifdef::VK_AMD_mixed_attachment_samples[]
+ ** The `apiext:VK_AMD_mixed_attachment_samples` extension
+endif::VK_AMD_mixed_attachment_samples[]
+ifdef::VK_NV_framebuffer_mixed_samples[]
+ ** The `apiext:VK_NV_framebuffer_mixed_samples` extension
+endif::VK_NV_framebuffer_mixed_samples[]
+ifdef::VK_EXT_multisampled_render_to_single_sampled[]
+ ** The <<features-multisampledRenderToSingleSampled,
+ pname:multisampledRenderToSingleSampled>> feature,
+endif::VK_EXT_multisampled_render_to_single_sampled[]
+endif::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples,VK_EXT_multisampled_render_to_single_sampled[]
+ * [[VUID-VkRenderingInfo-imageView-09429]]
+ pname:imageView members of elements of pname:pColorAttachments that are
+ not dlink:VK_NULL_HANDLE must: have been created with the same
+ pname:sampleCount
+ifdef::VK_EXT_multisampled_render_to_single_sampled[]
+ , if the <<features-multisampledRenderToSingleSampled,
+ pname:multisampledRenderToSingleSampled>> feature is not enabled
+endif::VK_EXT_multisampled_render_to_single_sampled[]
* [[VUID-VkRenderingInfo-None-08994]]
ifdef::VK_VERSION_1_1,VK_KHR_device_group[]
If slink:VkDeviceGroupRenderPassBeginInfo::pname:deviceRenderAreaCount
@@ -2317,10 +2334,8 @@ endif::VK_HUAWEI_subpass_shading[]
If pname:pResolveAttachments is not `NULL`, each resolve attachment that
is not ename:VK_ATTACHMENT_UNUSED must: have the same elink:VkFormat as
its corresponding color attachment
- * [[VUID-VkSubpassDescription-pColorAttachments-06868]]
- If neither the `apiext:VK_AMD_mixed_attachment_samples` extension nor
- the `apiext:VK_NV_framebuffer_mixed_samples` extension is enabled, all
- attachments in pname:pColorAttachments that are not
+ * [[VUID-VkSubpassDescription-pColorAttachments-09430]]
+ All attachments in pname:pColorAttachments that are not
ename:VK_ATTACHMENT_UNUSED must: have the same sample count
* [[VUID-VkSubpassDescription-pInputAttachments-02647]]
All attachments in pname:pInputAttachments that are not
@@ -2367,20 +2382,35 @@ ifdef::VK_NV_linear_color_attachment[]
features>> must: contain
ename:VK_FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV
endif::VK_NV_linear_color_attachment[]
+ifdef::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples[]
+ * [[VUID-VkSubpassDescription-None-09431]]
+ If either of the following is enabled:
ifdef::VK_AMD_mixed_attachment_samples[]
- * [[VUID-VkSubpassDescription-pColorAttachments-01506]]
- If the `apiext:VK_AMD_mixed_attachment_samples` extension is enabled,
- all attachments in pname:pColorAttachments that are not
- ename:VK_ATTACHMENT_UNUSED must: have a sample count that is smaller
- than or equal to the sample count of pname:pDepthStencilAttachment if it
- is not ename:VK_ATTACHMENT_UNUSED
+ ** The `apiext:VK_AMD_mixed_attachment_samples` extension
endif::VK_AMD_mixed_attachment_samples[]
+ifdef::VK_NV_framebuffer_mixed_samples[]
+ ** The `apiext:VK_NV_framebuffer_mixed_samples` extension
+endif::VK_NV_framebuffer_mixed_samples[]
+
++
+all attachments in pname:pColorAttachments that are not
+ename:VK_ATTACHMENT_UNUSED must: have a sample count that is smaller than or
+equal to the sample count of pname:pDepthStencilAttachment if it is not
+ename:VK_ATTACHMENT_UNUSED
+endif::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples[]
* [[VUID-VkSubpassDescription-pDepthStencilAttachment-01418]]
- If neither the `apiext:VK_AMD_mixed_attachment_samples` nor the
- `apiext:VK_NV_framebuffer_mixed_samples` extensions are enabled, and if
- pname:pDepthStencilAttachment is not ename:VK_ATTACHMENT_UNUSED and any
- attachments in pname:pColorAttachments are not
+ If pname:pDepthStencilAttachment is not ename:VK_ATTACHMENT_UNUSED and
+ any attachments in pname:pColorAttachments are not
ename:VK_ATTACHMENT_UNUSED, they must: have the same sample count
+ifdef::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples[]
+ , if none of the following are enabled:
+ifdef::VK_AMD_mixed_attachment_samples[]
+ ** The `apiext:VK_AMD_mixed_attachment_samples` extension
+endif::VK_AMD_mixed_attachment_samples[]
+ifdef::VK_NV_framebuffer_mixed_samples[]
+ ** The `apiext:VK_NV_framebuffer_mixed_samples` extension
+endif::VK_NV_framebuffer_mixed_samples[]
+endif::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples[]
* [[VUID-VkSubpassDescription-attachment-00853]]
Each element of pname:pPreserveAttachments must: not be
ename:VK_ATTACHMENT_UNUSED
@@ -3716,10 +3746,8 @@ ifdef::VK_ANDROID_external_format_resolve[]
endif::VK_ANDROID_external_format_resolve[]
ifdef::VK_EXT_multisampled_render_to_single_sampled[]
* [[VUID-VkSubpassDescription2-multisampledRenderToSingleSampled-06869]]
- If none of the `apiext:VK_AMD_mixed_attachment_samples` extension, the
- `apiext:VK_NV_framebuffer_mixed_samples` extension, or the
- <<features-multisampledRenderToSingleSampled,
- pname:multisampledRenderToSingleSampled>> feature are enabled, all
+ If the <<features-multisampledRenderToSingleSampled,
+ pname:multisampledRenderToSingleSampled>> feature is not enabled, all
attachments in pname:pColorAttachments that are not
ename:VK_ATTACHMENT_UNUSED must: have the same sample count
endif::VK_EXT_multisampled_render_to_single_sampled[]
@@ -3820,12 +3848,22 @@ ifdef::VK_EXT_multisampled_render_to_single_sampled[]
value ename:VK_ATTACHMENT_UNUSED
endif::VK_EXT_multisampled_render_to_single_sampled[]
* [[VUID-VkSubpassDescription2-multisampledRenderToSingleSampled-06872]]
- If none of the `apiext:VK_AMD_mixed_attachment_samples` extension, the
- `apiext:VK_NV_framebuffer_mixed_samples` extension, or the
- <<features-multisampledRenderToSingleSampled,
- pname:multisampledRenderToSingleSampled>> feature are enabled, all
- attachments in pname:pDepthStencilAttachment or pname:pColorAttachments
- that are not ename:VK_ATTACHMENT_UNUSED must: have the same sample count
+ All attachments in pname:pDepthStencilAttachment or
+ pname:pColorAttachments that are not ename:VK_ATTACHMENT_UNUSED must:
+ have the same sample count
+ifdef::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples,VK_EXT_multisampled_render_to_single_sampled[]
+ , if none of the following are enabled:
+ifdef::VK_AMD_mixed_attachment_samples[]
+ ** The `apiext:VK_AMD_mixed_attachment_samples` extension
+endif::VK_AMD_mixed_attachment_samples[]
+ifdef::VK_NV_framebuffer_mixed_samples[]
+ ** The `apiext:VK_NV_framebuffer_mixed_samples` extension
+endif::VK_NV_framebuffer_mixed_samples[]
+ifdef::VK_EXT_multisampled_render_to_single_sampled[]
+ ** The <<features-multisampledRenderToSingleSampled,
+ pname:multisampledRenderToSingleSampled>> feature,
+endif::VK_EXT_multisampled_render_to_single_sampled[]
+endif::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples,VK_EXT_multisampled_render_to_single_sampled[]
* [[VUID-VkSubpassDescription2-attachment-03073]]
Each element of pname:pPreserveAttachments must: not be
ename:VK_ATTACHMENT_UNUSED
@@ -5084,7 +5122,6 @@ or the equivalent
include::{generated}/api/structs/VkFramebufferAttachmentImageInfoKHR.adoc[]
endif::VK_KHR_imageless_framebuffer[]
-
* pname:sType is a elink:VkStructureType value identifying this structure.
* pname:pNext is `NULL` or a pointer to a structure extending this
structure.