pub unsafe extern "C" fn SDL_BindGPUComputeStorageTextures(
compute_pass: *mut SDL_GPUComputePass,
first_slot: Uint32,
storage_textures: *const *mut SDL_GPUTexture,
num_bindings: Uint32,
)Expand description
Binds storage textures as readonly for use on the compute pipeline.
These textures must have been created with
SDL_GPU_TEXTUREUSAGE_COMPUTE_STORAGE_READ.
Be sure your shader is set up according to the requirements documented in
SDL_CreateGPUComputePipeline().
§Parameters
compute_pass: a compute pass handle.first_slot: the compute storage texture slot to begin binding from.storage_textures: an array of storage textures.num_bindings: the number of storage textures to bind from the array.
§Availability
This function is available since SDL 3.2.0.