• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2020-2021 The Khronos Group Inc.
2//
3// SPDX-License-Identifier: CC-BY-4.0
4// Common Valid Usage
5// Common to subpass description structures
6  * [[VUID-{refpage}-attachment-06912]]
7    If the pname:attachment member of an element of pname:pInputAttachments
8    is not ename:VK_ATTACHMENT_UNUSED, its pname:layout member must: not be
9    ename:VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL or
10    ename:VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
11  * [[VUID-{refpage}-attachment-06913]]
12    If the pname:attachment member of an element of pname:pColorAttachments
13    is not ename:VK_ATTACHMENT_UNUSED, its pname:layout member must: not be
14    ename:VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL or
15    ename:VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
16  * [[VUID-{refpage}-attachment-06914]]
17    If the pname:attachment member of an element of
18    pname:pResolveAttachments is not ename:VK_ATTACHMENT_UNUSED, its
19    pname:layout member must: not be
20    ename:VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL or
21    ename:VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
22  * [[VUID-{refpage}-attachment-06915]]
23    If the pname:attachment member of pname:pDepthStencilAttachment is not
24    ename:VK_ATTACHMENT_UNUSED, ts pname:layout member must: not be
25    ename:VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL or
26    ename:VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
27ifdef::VK_VERSION_1_1,VK_KHR_maintenance2[]
28  * [[VUID-{refpage}-attachment-06916]]
29    If the pname:attachment member of an element of pname:pColorAttachments
30    is not ename:VK_ATTACHMENT_UNUSED, its pname:layout member must: not be
31    ename:VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL or
32    ename:VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
33  * [[VUID-{refpage}-attachment-06917]]
34    If the pname:attachment member of an element of
35    pname:pResolveAttachments is not ename:VK_ATTACHMENT_UNUSED, its
36    pname:layout member must: not be
37    ename:VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL or
38    ename:VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
39endif::VK_VERSION_1_1,VK_KHR_maintenance2[]
40ifdef::VK_VERSION_1_2,VK_KHR_separate_depth_stencil_layouts[]
41  * [[VUID-{refpage}-attachment-06918]]
42    If the pname:attachment member of an element of pname:pInputAttachments
43    is not ename:VK_ATTACHMENT_UNUSED, its pname:layout member must: not be
44    ename:VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL or
45    ename:VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL
46  * [[VUID-{refpage}-attachment-06919]]
47    If the pname:attachment member of an element of pname:pColorAttachments
48    is not ename:VK_ATTACHMENT_UNUSED, its pname:layout member must: not be
49    ename:VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,
50    ename:VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,
51    ename:VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, or
52    ename:VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
53  * [[VUID-{refpage}-attachment-06920]]
54    If the pname:attachment member of an element of
55    pname:pResolveAttachments is not ename:VK_ATTACHMENT_UNUSED, its
56    pname:layout member must: not be
57    ename:VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,
58    ename:VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,
59    ename:VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, or
60    ename:VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
61endif::VK_VERSION_1_2,VK_KHR_separate_depth_stencil_layouts[]
62ifdef::VK_KHR_synchronization2[]
63  * [[VUID-{refpage}-attachment-06921]]
64    If the pname:attachment member of an element of pname:pInputAttachments
65    is not ename:VK_ATTACHMENT_UNUSED, its pname:layout member must: not be
66    ename:VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR
67  * [[VUID-{refpage}-attachment-06922]]
68    If the pname:attachment member of an element of pname:pColorAttachments
69    is not ename:VK_ATTACHMENT_UNUSED, its pname:layout member must: not be
70    ename:VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR
71  * [[VUID-{refpage}-attachment-06923]]
72    If the pname:attachment member of an element of
73    pname:pResolveAttachments is not ename:VK_ATTACHMENT_UNUSED, its
74    pname:layout member must: not be
75    ename:VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR
76endif::VK_KHR_synchronization2[]
77// Common Valid Usage
78