Bladeren bron

Clarify SDL_GPUVertexBufferDescription.pitch comment (#13381)

BurntRanch 1 week geleden
bovenliggende
commit
ee6d8f78f4
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      include/SDL3/SDL_gpu.h

+ 1 - 1
include/SDL3/SDL_gpu.h

@@ -1627,7 +1627,7 @@ typedef struct SDL_GPUSamplerCreateInfo
 typedef struct SDL_GPUVertexBufferDescription
 typedef struct SDL_GPUVertexBufferDescription
 {
 {
     Uint32 slot;                        /**< The binding slot of the vertex buffer. */
     Uint32 slot;                        /**< The binding slot of the vertex buffer. */
-    Uint32 pitch;                       /**< The byte pitch between consecutive elements of the vertex buffer. */
+    Uint32 pitch;                       /**< The size of a single element + the offset between elements. */
     SDL_GPUVertexInputRate input_rate;  /**< Whether attribute addressing is a function of the vertex index or instance index. */
     SDL_GPUVertexInputRate input_rate;  /**< Whether attribute addressing is a function of the vertex index or instance index. */
     Uint32 instance_step_rate;          /**< Reserved for future use. Must be set to 0. */
     Uint32 instance_step_rate;          /**< Reserved for future use. Must be set to 0. */
 } SDL_GPUVertexBufferDescription;
 } SDL_GPUVertexBufferDescription;