Skip to content

Commit

Permalink
Sync SDL3 wiki -> header
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
SDLWikiBot committed Dec 20, 2024
1 parent 0f9e86f commit b2c15a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions include/SDL3/SDL_gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -2197,11 +2197,12 @@ extern SDL_DECLSPEC SDL_GPUSampler *SDLCALL SDL_CreateGPUSampler(
* [[stage_in]] attribute which will automatically use the vertex input
* information from the SDL_GPUGraphicsPipeline.
*
* Shader semantics do not matter in D3D12 and for ease of use the SDL
* implementation assumes that they will all be TEXCOORD. If you are using
* HLSL as the shader source language, your vertex semantics should start at
* TEXCOORD0 and increment like so: TEXCOORD1, TEXCOORD2, etc. If you wish to
* change the semantic prefix to something other than TEXCOORD you can use
* Shader semantics other than system-value semantics do not matter in D3D12
* and for ease of use the SDL implementation assumes that non system-value
* semantics will all be TEXCOORD. If you are using HLSL as the shader source
* language, your vertex semantics should start at TEXCOORD0 and increment
* like so: TEXCOORD1, TEXCOORD2, etc. If you wish to change the semantic
* prefix to something other than TEXCOORD you can use
* SDL_PROP_GPU_DEVICE_CREATE_D3D12_SEMANTIC_NAME_STRING with
* SDL_CreateGPUDeviceWithProperties().
*
Expand Down

0 comments on commit b2c15a8

Please sign in to comment.