SDL_GPUShaderCreateInfo

A structure specifying code and metadata for creating a shader object.

Members

Variables

code
const(Uint8)* code;

A pointer to shader code.

code_size
size_t code_size;

The size in bytes of the code pointed to.

entrypoint
const(char)* entrypoint;

A pointer to a null-terminated UTF-8 string specifying the entry point function name for the shader.

format
SDL_GPUShaderFormat format;

The format of the shader code.

num_samplers
Uint32 num_samplers;

The number of samplers defined in the shader.

num_storage_buffers
Uint32 num_storage_buffers;

The number of storage buffers defined in the shader.

num_storage_textures
Uint32 num_storage_textures;

The number of storage textures defined in the shader.

num_uniform_buffers
Uint32 num_uniform_buffers;

The number of uniform buffers defined in the shader.

props
SDL_PropertiesID props;

A properties ID for extensions. Should be 0 if no extensions are needed.

stage
SDL_GPUShaderStage stage;

The stage the shader program corresponds to.

See Also

Meta