1// Copyright 2022-2024 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5// Common Valid Usage 6// Common to drawing commands that are indexed 7 * [[VUID-{refpage}-None-07312]] 8 {empty} 9ifdef::VK_KHR_maintenance6+VK_EXT_robustness2[] 10 If <<features-maintenance6, pname:maintenance6>> is not enabled, a 11endif::VK_KHR_maintenance6+VK_EXT_robustness2[] 12ifndef::VK_KHR_maintenance6[A] 13 valid index buffer must: be bound 14 * [[VUID-{refpage}-robustBufferAccess2-07825]] 15 If <<features-robustBufferAccess2, pname:robustBufferAccess2>> is not 16 enabled, [eq]#(code:indexSize {times} (pname:firstIndex {plus} 17 pname:indexCount) {plus} pname:offset)# must: be less than or equal to 18 the size of the bound index buffer, with code:indexSize being based on 19 the type specified by pname:indexType, where the index buffer, 20 pname:indexType, and pname:offset are specified via 21 fname:vkCmdBindIndexBuffer 22// Common Valid Usage 23