GPU: Metal vertex buffer indices should grow upward (#10837)

This commit is contained in:
Caleb Cornett
2024-09-15 20:17:43 -05:00
committed by GitHub
parent 0548050fc5
commit 4f722d372a
2 changed files with 11 additions and 16 deletions

View File

@@ -1983,7 +1983,7 @@ extern SDL_DECLSPEC SDL_GPUSampler *SDLCALL SDL_CreateGPUSampler(
* - [[texture]]: Sampled textures, followed by storage textures
* - [[sampler]]: Samplers with indices corresponding to the sampled textures
* - [[buffer]]: Uniform buffers, followed by storage buffers. Vertex buffer 0
* is bound at [[buffer(30)]], vertex buffer 1 at [[buffer(29)]], and so on.
* is bound at [[buffer(14)]], vertex buffer 1 at [[buffer(15)]], and so on.
* Rather than manually authoring vertex buffer indices, use the
* [[stage_in]] attribute which will automatically use the vertex input
* information from the SDL_GPUPipeline.