26#include <Objectively/Object.h>
39typedef struct RenderPassInterface RenderPassInterface;
86 SDL_GPURenderPass *pass;
117struct RenderPassInterface {
122 ObjectInterface objectInterface;
157 void (*
bindIndexBuffer)(
const RenderPass *self,
const SDL_GPUBufferBinding *binding, SDL_GPUIndexElementSize indexElementSize);
208 void (*
drawIndexedPrimitives)(
const RenderPass *self, Uint32 numIndices, Uint32 numInstances, Uint32 firstIndex, Sint32 vertexOffset, Uint32 firstInstance);
222 void (*
drawPrimitives)(
const RenderPass *self, Uint32 numVertices, Uint32 numInstances, Uint32 firstVertex, Uint32 firstInstance);
static void bindPipeline(ComputePass *self, ComputePipeline *pipeline)
Definition ComputePass.c:57
static void bindIndexBuffer(const RenderPass *self, const SDL_GPUBufferBinding *binding, SDL_GPUIndexElementSize indexElementSize)
Definition RenderPass.c:82
static void bindFragmentStorageTextures(const RenderPass *self, Uint32 firstSlot, SDL_GPUTexture *const *textures, Uint32 num)
Definition RenderPass.c:74
static void drawIndexedPrimitives(const RenderPass *self, Uint32 numIndices, Uint32 numInstances, Uint32 firstIndex, Sint32 vertexOffset, Uint32 firstInstance)
Definition RenderPass.c:161
static void drawPrimitives(const RenderPass *self, Uint32 numVertices, Uint32 numInstances, Uint32 firstVertex, Uint32 firstInstance)
Definition RenderPass.c:179
static void bindFragmentSamplers(const RenderPass *self, Uint32 firstSlot, const SDL_GPUTextureSamplerBinding *bindings, Uint32 num)
Definition RenderPass.c:58
static void bindFragmentStorageBuffers(const RenderPass *self, Uint32 firstSlot, SDL_GPUBuffer *const *buffers, Uint32 num)
Definition RenderPass.c:66
static void bindVertexSamplers(const RenderPass *self, Uint32 firstSlot, const SDL_GPUTextureSamplerBinding *bindings, Uint32 num)
Definition RenderPass.c:111
static void setViewport(RenderPass *self, const SDL_GPUViewport *viewport)
Definition RenderPass.c:278
static void beginQuery(const RenderPass *self, QueryPool *pool, Uint32 index)
Definition RenderPass.c:135
static void drawPrimitivesIndirect(const RenderPass *self, SDL_GPUBuffer *buffer, Uint32 offset, Uint32 drawCount)
Definition RenderPass.c:188
static void bindVertexStorageTextures(const RenderPass *self, Uint32 firstSlot, SDL_GPUTexture *const *textures, Uint32 num)
Definition RenderPass.c:127
static void bindVertexStorageBuffers(const RenderPass *self, Uint32 firstSlot, SDL_GPUBuffer *const *buffers, Uint32 num)
Definition RenderPass.c:119
static void setStencilReference(RenderPass *self, Uint8 reference)
Definition RenderPass.c:267
static void bindVertexBuffers(const RenderPass *self, Uint32 firstSlot, const SDL_GPUBufferBinding *bindings, Uint32 num)
Definition RenderPass.c:103
static void endQuery(const RenderPass *self, QueryPool *pool, Uint32 index)
Definition RenderPass.c:148
static void setBlendConstants(RenderPass *self, SDL_FColor blendConstants)
Definition RenderPass.c:215
static void setScissor(RenderPass *self, const SDL_Rect *scissor)
Definition RenderPass.c:226
static void drawIndexedPrimitivesIndirect(const RenderPass *self, SDL_GPUBuffer *buffer, Uint32 offset, Uint32 drawCount)
Definition RenderPass.c:170
OBJECTIVELYGPU_EXPORT Class * _RenderPass(void)
Definition RenderPass.c:322
#define OBJECTIVELYGPU_EXPORT
Definition Types.h:35
A recorded sequence of GPU commands for a single frame.
Definition CommandBuffer.h:81
An SDL_GPUGraphicsPipeline: the compiled vertex/fragment program plus all fixed-function render state...
Definition GraphicsPipeline.h:51
An SDL_GPUQueryPool and its metadata.
Definition QueryPool.h:86
A scoped render pass for recording draw commands into a CommandBuffer.
Definition RenderPass.h:57
GraphicsPipeline * pipeline
The currently bound pipeline, or NULL.
Definition RenderPass.h:91
SDL_Rect scissor
The current scissor.
Definition RenderPass.h:96
Object object
The superclass.
Definition RenderPass.h:62
SDL_FColor blendConstants
The current blend constants.
Definition RenderPass.h:73
ident data
User data.
Definition RenderPass.h:111
SDL_GPUViewport viewport
The current viewport.
Definition RenderPass.h:106
Uint8 stencilReference
The current stencil reference.
Definition RenderPass.h:101
RenderPassInterface * interface[0]
The interface type.
Definition RenderPass.h:68