1// Copyright 2019-2022 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5// Common Valid Usage 6// Common to vkCmdPipelineBarrier* commands 7 * [[VUID-{refpage}-pDependencies-02285]] 8 If fname:{refpage} is called within a render pass instance, the render 9 pass must: have been created with at least one slink:VkSubpassDependency 10 instance in sname:VkRenderPassCreateInfo::pname:pDependencies that 11 expresses a dependency from the current subpass to itself, with 12 <<synchronization-dependencies-scopes, synchronization scopes>> and 13 <<synchronization-dependencies-access-scopes, access scopes>> that are 14 all supersets of the scopes defined in this command 15 * [[VUID-{refpage}-bufferMemoryBarrierCount-01178]] 16 If fname:{refpage} is called within a render pass instance, it must: not 17 include any buffer memory barriers 18 * [[VUID-{refpage}-image-04073]] 19 If fname:{refpage} is called within a render pass instance, the 20 pname:image member of any image memory barrier included in this command 21 must: be an attachment used in the current subpass both as an input 22 attachment, and as either a color or depth/stencil attachment 23 * [[VUID-{refpage}-oldLayout-01181]] 24 If fname:{refpage} is called within a render pass instance, the 25 pname:oldLayout and pname:newLayout members of any image memory barrier 26 included in this command must: be equal 27 * [[VUID-{refpage}-srcQueueFamilyIndex-01182]] 28 If fname:{refpage} is called within a render pass instance, the 29 pname:srcQueueFamilyIndex and pname:dstQueueFamilyIndex members of any 30 image memory barrier included in this command must: be equal 31ifdef::VK_VERSION_1_1,VK_KHR_multiview[] 32 * [[VUID-{refpage}-dependencyFlags-01186]] 33 If fname:{refpage} is called outside of a render pass instance, 34 ename:VK_DEPENDENCY_VIEW_LOCAL_BIT must: not be included in the 35 dependency flags 36endif::VK_VERSION_1_1,VK_KHR_multiview[] 37ifdef::VK_VERSION_1_3,VK_KHR_dynamic_rendering[] 38 * [[VUID-{refpage}-None-06191]] 39 If fname:{refpage} is called within a render pass instance, the render 40 pass must: not have been started with flink:vkCmdBeginRendering 41endif::VK_VERSION_1_3,VK_KHR_dynamic_rendering[] 42// Common Valid Usage 43