• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2022-2023 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    An index buffer must: be bound
9  * [[VUID-{refpage}-robustBufferAccess2-07825]]
10    If <<features-robustBufferAccess2, pname:robustBufferAccess2>> is not
11    enabled, [eq]#(code:indexSize {times} (pname:firstIndex {plus}
12    pname:indexCount) {plus} pname:offset)# must: be less than or equal to
13    the size of the bound index buffer, with code:indexSize being based on
14    the type specified by pname:indexType, where the index buffer,
15    pname:indexType, and pname:offset are specified via
16    fname:vkCmdBindIndexBuffer
17// Common Valid Usage
18