Skip to main content

SDL_GPUBufferUsageFlags

Type Alias SDL_GPUBufferUsageFlags 

Source
pub type SDL_GPUBufferUsageFlags = Uint32;
Expand description

Specifies how a buffer is intended to be used by the client.

A buffer must have at least one usage flag. Note that some usage flag combinations are invalid.

Unlike textures, READ | WRITE can be used for simultaneous read-write usage. The same data synchronization concerns as textures apply.

If you use a STORAGE flag, the data in the buffer must respect std140 layout conventions. In practical terms this means you must ensure that vec3 and vec4 fields are 16-byte aligned.

Available Since: This datatype is available since SDL 3.2.0.

See Also: SDL_CreateGPUBuffer