// Copyright 2020-2021 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 <> 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 <> 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 <> 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