1// Copyright 2023 The Khronos Group Inc.
2//
3// SPDX-License-Identifier: CC-BY-4.0
4
5// Common Valid Usage
6// Common to dynamic state commands introduced by VK_EXT_extended_dynamic_state
7  * [[VUID-{refpage}-None-08971]]
8    At least one of the following must: be true:
9ifdef::VK_EXT_extended_dynamic_state[]
10  ** the <<features-extendedDynamicState, pname:extendedDynamicState>>
11     feature is enabled
12endif::VK_EXT_extended_dynamic_state[]
13ifdef::VK_EXT_shader_object[]
14  ** the <<features-shaderObject, pname:shaderObject>> feature is enabled
15endif::VK_EXT_shader_object[]
16ifdef::VK_VERSION_1_3[]
17  ** the value of slink:VkApplicationInfo::pname:apiVersion used to create
18     the slink:VkInstance parent of pname:commandBuffer is greater than or
19     equal to Version 1.3
20endif::VK_VERSION_1_3[]
21  * [[VUID-{refpage}-multisampledRenderToSingleSampled-07284]]
22    If rasterization is not disabled in the bound graphics pipeline,
23ifdef::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples,VK_EXT_multisampled_render_to_single_sampled[]
24    and none of the following is enabled:
25ifdef::VK_AMD_mixed_attachment_samples[]
26  ** the `apiext:VK_AMD_mixed_attachment_samples` extension
27endif::VK_AMD_mixed_attachment_samples[]
28ifdef::VK_NV_framebuffer_mixed_samples[]
29  ** the `apiext:VK_NV_framebuffer_mixed_samples` extension
30endif::VK_NV_framebuffer_mixed_samples[]
31ifdef::VK_EXT_multisampled_render_to_single_sampled[]
32  ** the <<features-multisampledRenderToSingleSampled,
33     pname:multisampledRenderToSingleSampled>> feature
34endif::VK_EXT_multisampled_render_to_single_sampled[]
35endif::VK_AMD_mixed_attachment_samples,VK_NV_framebuffer_mixed_samples,VK_EXT_multisampled_render_to_single_sampled[]
36
37+
38then pname:rasterizationSamples for the currently bound graphics pipeline
39must: be the same as the current subpass color and/or depth/stencil
40attachments
41  * [[VUID-{refpage}-None-10000]]
42    Some VU that follows
43// Common Valid Usage
44