|
SDL3pp
A slim C++ wrapper for SDL3
|
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. | |
An opaque handle representing a compute pass.
This handle is transient and should not be held or referenced after GPUComputePass.End is called.
|
inlineconstexprnoexcept |
Wraps GPUComputePass.
| gPUComputePass | the value to be wrapped |
|
inlineconstexprnoexcept |
Unwraps to the underlying GPUComputePass.