SDL_GPUStorageTextureReadWriteBinding

A structure specifying parameters related to binding textures in a compute pass.

Members

Variables

cycle
bool cycle;

true cycles the texture if it is already bound.

layer
Uint32 layer;

The layer index to bind.

mip_level
Uint32 mip_level;

The mip level index to bind.

padding1
Uint8 padding1;
Undocumented in source.
padding2
Uint8 padding2;
Undocumented in source.
padding3
Uint8 padding3;
Undocumented in source.
texture
SDL_GPUTexture* texture;

The texture to bind. Must have been created with SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_WRITE or SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_SIMULTANEOUS_READ_WRITE.

See Also

Meta