SDL 3.0
SDL_GPUStorageBufferReadWriteBinding Struct Reference

#include <SDL_gpu.h>

Data Fields

SDL_GPUBufferbuffer
 
bool cycle
 
Uint8 padding1
 
Uint8 padding2
 
Uint8 padding3
 

Detailed Description

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

Since
This struct is available since SDL 3.1.3
See also
SDL_BeginGPUComputePass

Definition at line 2016 of file SDL_gpu.h.

Field Documentation

◆ buffer

SDL_GPUBuffer* SDL_GPUStorageBufferReadWriteBinding::buffer

The buffer to bind. Must have been created with SDL_GPU_BUFFERUSAGE_COMPUTE_STORAGE_WRITE.

Definition at line 2018 of file SDL_gpu.h.

◆ cycle

bool SDL_GPUStorageBufferReadWriteBinding::cycle

true cycles the buffer if it is already bound.

Definition at line 2019 of file SDL_gpu.h.

◆ padding1

Uint8 SDL_GPUStorageBufferReadWriteBinding::padding1

Definition at line 2020 of file SDL_gpu.h.

◆ padding2

Uint8 SDL_GPUStorageBufferReadWriteBinding::padding2

Definition at line 2021 of file SDL_gpu.h.

◆ padding3

Uint8 SDL_GPUStorageBufferReadWriteBinding::padding3

Definition at line 2022 of file SDL_gpu.h.


The documentation for this struct was generated from the following file: