26#include <Objectively/Object.h>
37typedef struct ComputePassInterface ComputePassInterface;
80 SDL_GPUComputePass *pass;
96struct ComputePassInterface {
101 ObjectInterface objectInterface;
115 void (*bindSamplers)(
const ComputePass *self, Uint32 firstSlot,
const SDL_GPUTextureSamplerBinding *bindings, Uint32 num);
122 void (*bindStorageBuffers)(
const ComputePass *self, Uint32 firstSlot, SDL_GPUBuffer *
const *buffers, Uint32 num);
129 void (*bindStorageTextures)(
const ComputePass *self, Uint32 firstSlot, SDL_GPUTexture *
const *textures, Uint32 num);
140 void (*dispatchCompute)(
const ComputePass *self, Uint32 groupCountX, Uint32 groupCountY, Uint32 groupCountZ);
147 void (*dispatchComputeIndirect)(
const ComputePass *self, SDL_GPUBuffer *buffer, Uint32 offset);
OBJECTIVELYGPU_EXPORT Class * _ComputePass(void)
Definition ComputePass.c:148
#define OBJECTIVELYGPU_EXPORT
Definition Types.h:35
A recorded sequence of GPU commands for a single frame.
Definition CommandBuffer.h:80
A scoped compute pass for recording GPU compute dispatches.
Definition ComputePass.h:56
ComputePassInterface * interface
The interface.
Definition ComputePass.h:67
ComputePipeline * pipeline
The currently bound pipeline, or NULL.
Definition ComputePass.h:85
ident data
User data.
Definition ComputePass.h:90
Object object
The superclass.
Definition ComputePass.h:61
An SDL_GPUComputePipeline: a compiled compute program and its binding layout.
Definition ComputePipeline.h:50