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

Macros

#define _Class   _Buffer

Functions

static void dealloc (Object *self)
static Buffer * initWithConstMem (Buffer *self, RenderDevice *device, SDL_GPUBufferUsageFlags usage, const void *mem, Uint32 size)
static Buffer * initWithData (Buffer *self, RenderDevice *device, SDL_GPUBufferUsageFlags usage, const Data *data)
static Buffer * initWithDevice (Buffer *self, RenderDevice *device, const SDL_GPUBufferCreateInfo *info)
static void setName (Buffer *self, const char *name)
static void upload (Buffer *self, const void *data, Uint32 size, Uint32 offset, bool cycle)
static void uploadWithPass (Buffer *self, CopyPass *copyPass, const void *data, Uint32 size, Uint32 offset, bool cycle)
static void initialize (Class *clazz)
Class * _Buffer (void)

Macro Definition Documentation

◆ _Class

#define _Class   _Buffer

Function Documentation

◆ _Buffer()

Class * _Buffer ( void )

◆ dealloc()

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

◆ initialize()

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

◆ initWithConstMem()

Buffer * initWithConstMem ( Buffer * self,
RenderDevice * device,
SDL_GPUBufferUsageFlags usage,
const void * mem,
Uint32 size )
static

◆ initWithData()

Buffer * initWithData ( Buffer * self,
RenderDevice * device,
SDL_GPUBufferUsageFlags usage,
const Data * data )
static

◆ initWithDevice()

Buffer * initWithDevice ( Buffer * self,
RenderDevice * device,
const SDL_GPUBufferCreateInfo * info )
static

◆ setName()

void setName ( Buffer * self,
const char * name )
static

◆ upload()

void upload ( Buffer * self,
const void * data,
Uint32 size,
Uint32 offset,
bool cycle )
static

◆ uploadWithPass()

void uploadWithPass ( Buffer * self,
CopyPass * copyPass,
const void * data,
Uint32 size,
Uint32 offset,
bool cycle )
static