1// Copyright 2015-2023 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5= Title 6 7[open,refpage='vkCmdClearColorImage',desc='Clear regions of a color image',type='protos'] 8-- 9To clear one or more subranges of a color image, call: 10 11include::{generated}/api/protos/vkCmdClearColorImage.adoc[] 12 13.Valid Usage 14**** 15 * [[VUID-vkCmdClearColorImage-image-10000]] 16 If pname:image is non-sparse then the following must: hold: 17 18 {empty}:: [eq]#p~i~ = {v~i~, v~i+1~}# 19 20 * [[VUID-vkCmdClearColorImage-imageLayout-00004]] 21 pname:imageLayout must: specify the layout of the image subresource ranges of pname:image specified in pname:pRanges at the time this 22 command is executed on a sname:VkDevice 23**** 24