ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
Loading...
Searching...
No Matches
CommandBuffer.c File Reference
#include <assert.h>
#include "CommandBuffer.h"
#include "ComputePass.h"
#include "CopyPass.h"
#include "Fence.h"
#include "Framebuffer.h"
#include "RenderDevice.h"
#include "RenderPass.h"

Macros

#define _Class   _CommandBuffer

Functions

static void dealloc (Object *self)
static bool acquireSwapchainTexture (const CommandBuffer *self, SwapchainTexture *swapchain)
static ComputePass * beginComputePass (CommandBuffer *self, const SDL_GPUStorageTextureReadWriteBinding *storageTextures, Uint32 numStorageTextures, const SDL_GPUStorageBufferReadWriteBinding *storageBuffers, Uint32 numStorageBuffers)
static CopyPass * beginCopyPass (CommandBuffer *self)
static RenderPass * beginRenderPass (CommandBuffer *self, const SDL_GPUColorTargetInfo *colorTargets, Uint32 numColorTargets, const SDL_GPUDepthStencilTargetInfo *depthStencil)
static RenderPass * beginRenderPassWithFramebuffer (CommandBuffer *self, const Framebuffer *framebuffer, SDL_GPULoadOp loadOp, SDL_GPUStoreOp storeOp)
static void blitTexture (const CommandBuffer *self, const SDL_GPUBlitInfo *info)
static bool cancel (CommandBuffer *self)
static void generateMipmaps (const CommandBuffer *self, SDL_GPUTexture *texture)
static CommandBuffer * initWithCommandBuffer (CommandBuffer *self, const RenderDevice *device, SDL_GPUCommandBuffer *commands)
static void insertDebugLabel (const CommandBuffer *self, const char *text)
static void popDebugGroup (const CommandBuffer *self)
static void pushComputeUniformData (const CommandBuffer *self, Uint32 slot, const void *data, Uint32 length)
static void pushDebugGroup (const CommandBuffer *self, const char *name)
static void pushFragmentUniformData (const CommandBuffer *self, Uint32 slot, const void *data, Uint32 length)
static void pushVertexUniformData (const CommandBuffer *self, Uint32 slot, const void *data, Uint32 length)
static void pushUniformData (const CommandBuffer *self, Uint32 slot, const void *data, Uint32 length)
static bool submit (CommandBuffer *self)
static Fence * submitAndFence (CommandBuffer *self)
static bool waitAndAcquireSwapchainTexture (const CommandBuffer *self, SwapchainTexture *swapchain)
static void initialize (Class *clazz)
Class * _CommandBuffer (void)

Macro Definition Documentation

◆ _Class

#define _Class   _CommandBuffer

Function Documentation

◆ _CommandBuffer()

Class * _CommandBuffer ( void )

◆ acquireSwapchainTexture()

bool acquireSwapchainTexture ( const CommandBuffer * self,
SwapchainTexture * swapchain )
static

◆ beginComputePass()

ComputePass * beginComputePass ( CommandBuffer * self,
const SDL_GPUStorageTextureReadWriteBinding * storageTextures,
Uint32 numStorageTextures,
const SDL_GPUStorageBufferReadWriteBinding * storageBuffers,
Uint32 numStorageBuffers )
static

◆ beginCopyPass()

CopyPass * beginCopyPass ( CommandBuffer * self)
static

◆ beginRenderPass()

RenderPass * beginRenderPass ( CommandBuffer * self,
const SDL_GPUColorTargetInfo * colorTargets,
Uint32 numColorTargets,
const SDL_GPUDepthStencilTargetInfo * depthStencil )
static

◆ beginRenderPassWithFramebuffer()

RenderPass * beginRenderPassWithFramebuffer ( CommandBuffer * self,
const Framebuffer * framebuffer,
SDL_GPULoadOp loadOp,
SDL_GPUStoreOp storeOp )
static

◆ blitTexture()

void blitTexture ( const CommandBuffer * self,
const SDL_GPUBlitInfo * info )
static

◆ cancel()

bool cancel ( CommandBuffer * self)
static

◆ dealloc()

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

◆ generateMipmaps()

void generateMipmaps ( const CommandBuffer * self,
SDL_GPUTexture * texture )
static

◆ initialize()

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

◆ initWithCommandBuffer()

CommandBuffer * initWithCommandBuffer ( CommandBuffer * self,
const RenderDevice * device,
SDL_GPUCommandBuffer * commands )
static

◆ insertDebugLabel()

void insertDebugLabel ( const CommandBuffer * self,
const char * text )
static

◆ popDebugGroup()

void popDebugGroup ( const CommandBuffer * self)
static

◆ pushComputeUniformData()

void pushComputeUniformData ( const CommandBuffer * self,
Uint32 slot,
const void * data,
Uint32 length )
static

◆ pushDebugGroup()

void pushDebugGroup ( const CommandBuffer * self,
const char * name )
static

◆ pushFragmentUniformData()

void pushFragmentUniformData ( const CommandBuffer * self,
Uint32 slot,
const void * data,
Uint32 length )
static

◆ pushUniformData()

void pushUniformData ( const CommandBuffer * self,
Uint32 slot,
const void * data,
Uint32 length )
static

◆ pushVertexUniformData()

void pushVertexUniformData ( const CommandBuffer * self,
Uint32 slot,
const void * data,
Uint32 length )
static

◆ submit()

bool submit ( CommandBuffer * self)
static

◆ submitAndFence()

Fence * submitAndFence ( CommandBuffer * self)
static

◆ waitAndAcquireSwapchainTexture()

bool waitAndAcquireSwapchainTexture ( const CommandBuffer * self,
SwapchainTexture * swapchain )
static