1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright 2020-2023 The Khronos Group Inc.
//
// SPDX-License-Identifier: CC-BY-4.0
// Common Valid Usage
// Common to attachment reference structures
* [[VUID-{refpage}-layout-03077]]
If pname:attachment is not ename:VK_ATTACHMENT_UNUSED, pname:layout
must: not be ename:VK_IMAGE_LAYOUT_UNDEFINED,
ename:VK_IMAGE_LAYOUT_PREINITIALIZED, or
ename:VK_IMAGE_LAYOUT_PRESENT_SRC_KHR
ifdef::VK_VERSION_1_2,VK_KHR_separate_depth_stencil_layouts[]
* [[VUID-{refpage}-separateDepthStencilLayouts-03313]]
If the <<features-separateDepthStencilLayouts,
pname:separateDepthStencilLayouts>> feature is not enabled, and
pname:attachment is not ename:VK_ATTACHMENT_UNUSED, pname:layout must:
not be ename:VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,
ename:VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,
ename:VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, or
ename:VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL,
endif::VK_VERSION_1_2,VK_KHR_separate_depth_stencil_layouts[]
ifdef::VK_KHR_synchronization2[]
* [[VUID-{refpage}-synchronization2-06910]]
If the <<features-synchronization2, pname:synchronization2>> feature is
not enabled, pname:layout must: not be
ename:VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR or
ename:VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR
endif::VK_KHR_synchronization2[]
ifdef::VK_EXT_attachment_feedback_loop_layout[]
* [[VUID-{refpage}-attachmentFeedbackLoopLayout-07311]]
If the <<features-attachmentFeedbackLoopLayout,
pname:attachmentFeedbackLoopLayout>> feature is not enabled,
pname:layout must: not be
ename:VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
endif::VK_EXT_attachment_feedback_loop_layout[]
// Common Valid Usage
|