SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::GPUComputePass Class Reference

An opaque handle representing a compute pass. More...

Public Member Functions

constexpr GPUComputePass (GPUComputePassRaw gPUComputePass={}) noexcept
 Wraps GPUComputePass.
constexpr operator GPUComputePassRaw () const noexcept
 Unwraps to the underlying GPUComputePass.
void BindPipeline (GPUComputePipeline compute_pipeline)
 Binds a compute pipeline on a command buffer for use in compute dispatch.
void BindSamplers (Uint32 first_slot, std::span< const GPUTextureSamplerBinding > texture_sampler_bindings)
 Binds texture-sampler pairs for use on the compute shader.
void BindStorageTextures (Uint32 first_slot, SpanRef< const GPUTextureRaw > storage_textures)
 Binds storage textures as readonly for use on the compute pipeline.
void BindStorageBuffers (Uint32 first_slot, SpanRef< const GPUBufferRaw > storage_buffers)
 Binds storage buffers as readonly for use on the compute pipeline.
void Dispatch (Uint32 groupcount_x, Uint32 groupcount_y, Uint32 groupcount_z)
 Dispatches compute work.
void DispatchIndirect (GPUBuffer buffer, Uint32 offset)
 Dispatches compute work with parameters set from a buffer.
void End ()
 Ends the current compute pass.

Detailed Description

An opaque handle representing a compute pass.

This handle is transient and should not be held or referenced after GPUComputePass.End is called.

Since
This struct is available since SDL 3.2.0.
See also
GPUCommandBuffer.BeginComputePass
GPUComputePass.End

Constructor & Destructor Documentation

◆ GPUComputePass()

SDL::GPUComputePass::GPUComputePass ( GPUComputePassRaw gPUComputePass = {})
inlineconstexprnoexcept

Wraps GPUComputePass.

Parameters
gPUComputePassthe value to be wrapped

Member Function Documentation

◆ operator GPUComputePassRaw()

SDL::GPUComputePass::operator GPUComputePassRaw ( ) const
inlineconstexprnoexcept

Unwraps to the underlying GPUComputePass.

Returns
the underlying GPUComputePassRaw.

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