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 "RenderDevice.h"
#include "RenderPass.h"

Macros

#define _Class   _CommandBuffer
 

Functions

static void dealloc (Object *self)
 
static bool acquireSwapchainTexture (const CommandBuffer *self, SwapchainTexture *swapchain)
 
static ComputePassbeginComputePass (CommandBuffer *self, const SDL_GPUStorageTextureReadWriteBinding *storageTextures, Uint32 numStorageTextures, const SDL_GPUStorageBufferReadWriteBinding *storageBuffers, Uint32 numStorageBuffers)
 
static CopyPassbeginCopyPass (CommandBuffer *self)
 
static RenderPassbeginRenderPass (CommandBuffer *self, const SDL_GPUColorTargetInfo *colorTargets, Uint32 numColorTargets, const SDL_GPUDepthStencilTargetInfo *depthStencil)
 
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 CommandBufferinitWithCommandBuffer (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 FencesubmitAndFence (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()

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

◆ beginComputePass()

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

◆ beginCopyPass()

static CopyPass * beginCopyPass ( CommandBuffer self)
static

◆ beginRenderPass()

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

◆ blitTexture()

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

◆ cancel()

static bool cancel ( CommandBuffer self)
static

◆ dealloc()

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

◆ generateMipmaps()

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

◆ initialize()

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

◆ initWithCommandBuffer()

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

◆ insertDebugLabel()

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

◆ popDebugGroup()

static void popDebugGroup ( const CommandBuffer self)
static

◆ pushComputeUniformData()

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

◆ pushDebugGroup()

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

◆ pushFragmentUniformData()

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

◆ pushUniformData()

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

◆ pushVertexUniformData()

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

◆ submit()

static bool submit ( CommandBuffer self)
static

◆ submitAndFence()

static Fence * submitAndFence ( CommandBuffer self)
static

◆ waitAndAcquireSwapchainTexture()

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