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 indirect drawing commands with a pname:countBuffer parameter 7 * [[VUID-{refpage}-countBuffer-02714]] 8 If pname:countBuffer is non-sparse then it must: be bound completely and 9 contiguously to a single sname:VkDeviceMemory object 10 * [[VUID-{refpage}-countBuffer-02715]] 11 pname:countBuffer must: have been created with the 12 ename:VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT bit set 13 * [[VUID-{refpage}-countBufferOffset-02716]] 14 pname:countBufferOffset must: be a multiple of `4` 15 * [[VUID-{refpage}-countBuffer-02717]] 16 The count stored in pname:countBuffer must: be less than or equal to 17 sname:VkPhysicalDeviceLimits::pname:maxDrawIndirectCount 18 * [[VUID-{refpage}-countBufferOffset-04129]] 19 [eq]#(pname:countBufferOffset {plus} code:sizeof(uint32_t))# must: be 20 less than or equal to the size of pname:countBuffer 21ifdef::VK_VERSION_1_2[] 22 * [[VUID-{refpage}-None-04445]] 23 If <<features-drawIndirectCount, pname:drawIndirectCount>> is not 24 enabled this function must: not be used 25endif::VK_VERSION_1_2[] 26// Common Valid Usage 27