#include <SDL_gpu.h>
A structure specifying code and metadata for creating a shader object.
- Since
- This struct is available since SDL 3.2.0.
- See also
- SDL_CreateGPUShader
-
SDL_GPUShaderFormat
-
SDL_GPUShaderStage
Definition at line 1740 of file SDL_gpu.h.
◆ code
| const Uint8* SDL_GPUShaderCreateInfo::code |
A pointer to shader code.
Definition at line 1743 of file SDL_gpu.h.
◆ code_size
| size_t SDL_GPUShaderCreateInfo::code_size |
The size in bytes of the code pointed to.
Definition at line 1742 of file SDL_gpu.h.
◆ entrypoint
| const char* SDL_GPUShaderCreateInfo::entrypoint |
A pointer to a null-terminated UTF-8 string specifying the entry point function name for the shader.
Definition at line 1744 of file SDL_gpu.h.
◆ format
The format of the shader code.
Definition at line 1745 of file SDL_gpu.h.
◆ num_samplers
| Uint32 SDL_GPUShaderCreateInfo::num_samplers |
The number of samplers defined in the shader.
Definition at line 1747 of file SDL_gpu.h.
◆ num_storage_buffers
| Uint32 SDL_GPUShaderCreateInfo::num_storage_buffers |
The number of storage buffers defined in the shader.
Definition at line 1749 of file SDL_gpu.h.
◆ num_storage_textures
| Uint32 SDL_GPUShaderCreateInfo::num_storage_textures |
The number of storage textures defined in the shader.
Definition at line 1748 of file SDL_gpu.h.
◆ num_uniform_buffers
| Uint32 SDL_GPUShaderCreateInfo::num_uniform_buffers |
The number of uniform buffers defined in the shader.
Definition at line 1750 of file SDL_gpu.h.
◆ props
A properties ID for extensions. Should be 0 if no extensions are needed.
Definition at line 1752 of file SDL_gpu.h.
◆ stage
The stage the shader program corresponds to.
Definition at line 1746 of file SDL_gpu.h.
The documentation for this struct was generated from the following file: