ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
Loading...
Searching...
No Matches
RenderPass.c File Reference
#include <assert.h>
#include "CommandBuffer.h"
#include "GraphicsPipeline.h"
#include "QueryPool.h"
#include "RenderPass.h"

Macros

#define _Class   _RenderPass

Functions

static void dealloc (Object *self)
static void bindFragmentSamplers (const RenderPass *self, Uint32 firstSlot, const SDL_GPUTextureSamplerBinding *bindings, Uint32 num)
static void bindFragmentStorageBuffers (const RenderPass *self, Uint32 firstSlot, SDL_GPUBuffer *const *buffers, Uint32 num)
static void bindFragmentStorageTextures (const RenderPass *self, Uint32 firstSlot, SDL_GPUTexture *const *textures, Uint32 num)
static void bindIndexBuffer (const RenderPass *self, const SDL_GPUBufferBinding *binding, SDL_GPUIndexElementSize indexElementSize)
static void bindPipeline (RenderPass *self, GraphicsPipeline *pipeline)
static void bindVertexBuffers (const RenderPass *self, Uint32 firstSlot, const SDL_GPUBufferBinding *bindings, Uint32 num)
static void bindVertexSamplers (const RenderPass *self, Uint32 firstSlot, const SDL_GPUTextureSamplerBinding *bindings, Uint32 num)
static void bindVertexStorageBuffers (const RenderPass *self, Uint32 firstSlot, SDL_GPUBuffer *const *buffers, Uint32 num)
static void bindVertexStorageTextures (const RenderPass *self, Uint32 firstSlot, SDL_GPUTexture *const *textures, Uint32 num)
static void beginQuery (const RenderPass *self, QueryPool *pool, Uint32 index)
static void endQuery (const RenderPass *self, QueryPool *pool, Uint32 index)
static void drawIndexedPrimitives (const RenderPass *self, Uint32 numIndices, Uint32 numInstances, Uint32 firstIndex, Sint32 vertexOffset, Uint32 firstInstance)
static void drawIndexedPrimitivesIndirect (const RenderPass *self, SDL_GPUBuffer *buffer, Uint32 offset, Uint32 drawCount)
static void drawPrimitives (const RenderPass *self, Uint32 numVertices, Uint32 numInstances, Uint32 firstVertex, Uint32 firstInstance)
static void drawPrimitivesIndirect (const RenderPass *self, SDL_GPUBuffer *buffer, Uint32 offset, Uint32 drawCount)
static RenderPass * init (RenderPass *self, CommandBuffer *commands, SDL_GPURenderPass *pass)
static void setBlendConstants (RenderPass *self, SDL_FColor blendConstants)
static void setScissor (RenderPass *self, const SDL_Rect *scissor)
static void setStencilReference (RenderPass *self, Uint8 reference)
static void setViewport (RenderPass *self, const SDL_GPUViewport *viewport)
static void initialize (Class *clazz)
Class * _RenderPass (void)

Macro Definition Documentation

◆ _Class

#define _Class   _RenderPass

Function Documentation

◆ _RenderPass()

Class * _RenderPass ( void )

◆ beginQuery()

void beginQuery ( const RenderPass * self,
QueryPool * pool,
Uint32 index )
static

◆ bindFragmentSamplers()

void bindFragmentSamplers ( const RenderPass * self,
Uint32 firstSlot,
const SDL_GPUTextureSamplerBinding * bindings,
Uint32 num )
static

◆ bindFragmentStorageBuffers()

void bindFragmentStorageBuffers ( const RenderPass * self,
Uint32 firstSlot,
SDL_GPUBuffer *const * buffers,
Uint32 num )
static

◆ bindFragmentStorageTextures()

void bindFragmentStorageTextures ( const RenderPass * self,
Uint32 firstSlot,
SDL_GPUTexture *const * textures,
Uint32 num )
static

◆ bindIndexBuffer()

void bindIndexBuffer ( const RenderPass * self,
const SDL_GPUBufferBinding * binding,
SDL_GPUIndexElementSize indexElementSize )
static

◆ bindPipeline()

void bindPipeline ( RenderPass * self,
GraphicsPipeline * pipeline )
static

◆ bindVertexBuffers()

void bindVertexBuffers ( const RenderPass * self,
Uint32 firstSlot,
const SDL_GPUBufferBinding * bindings,
Uint32 num )
static

◆ bindVertexSamplers()

void bindVertexSamplers ( const RenderPass * self,
Uint32 firstSlot,
const SDL_GPUTextureSamplerBinding * bindings,
Uint32 num )
static

◆ bindVertexStorageBuffers()

void bindVertexStorageBuffers ( const RenderPass * self,
Uint32 firstSlot,
SDL_GPUBuffer *const * buffers,
Uint32 num )
static

◆ bindVertexStorageTextures()

void bindVertexStorageTextures ( const RenderPass * self,
Uint32 firstSlot,
SDL_GPUTexture *const * textures,
Uint32 num )
static

◆ dealloc()

void dealloc ( Object * self)
static
See also
Object::dealloc(Object *)

◆ drawIndexedPrimitives()

void drawIndexedPrimitives ( const RenderPass * self,
Uint32 numIndices,
Uint32 numInstances,
Uint32 firstIndex,
Sint32 vertexOffset,
Uint32 firstInstance )
static

◆ drawIndexedPrimitivesIndirect()

void drawIndexedPrimitivesIndirect ( const RenderPass * self,
SDL_GPUBuffer * buffer,
Uint32 offset,
Uint32 drawCount )
static

◆ drawPrimitives()

void drawPrimitives ( const RenderPass * self,
Uint32 numVertices,
Uint32 numInstances,
Uint32 firstVertex,
Uint32 firstInstance )
static

◆ drawPrimitivesIndirect()

void drawPrimitivesIndirect ( const RenderPass * self,
SDL_GPUBuffer * buffer,
Uint32 offset,
Uint32 drawCount )
static

◆ endQuery()

void endQuery ( const RenderPass * self,
QueryPool * pool,
Uint32 index )
static

◆ init()

RenderPass * init ( RenderPass * self,
CommandBuffer * commands,
SDL_GPURenderPass * pass )
static

◆ initialize()

void initialize ( Class * clazz)
static
See also
Class::initialize(Class *)

◆ setBlendConstants()

void setBlendConstants ( RenderPass * self,
SDL_FColor blendConstants )
static

◆ setScissor()

void setScissor ( RenderPass * self,
const SDL_Rect * scissor )
static

◆ setStencilReference()

void setStencilReference ( RenderPass * self,
Uint8 reference )
static

◆ setViewport()

void setViewport ( RenderPass * self,
const SDL_GPUViewport * viewport )
static