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

Macros

#define _Class   _TransferBuffer
 

Functions

static void dealloc (Object *self)
 
static TransferBuffer * initWithDevice (TransferBuffer *self, RenderDevice *device, const SDL_GPUTransferBufferCreateInfo *info)
 
static void * map (const TransferBuffer *self, bool cycle)
 
static void unmap (const TransferBuffer *self)
 
static void writeData (const TransferBuffer *self, const void *data, Uint32 size, bool cycle)
 
static void initialize (Class *clazz)
 
Class * _TransferBuffer (void)
 

Macro Definition Documentation

◆ _Class

#define _Class   _TransferBuffer

Function Documentation

◆ _TransferBuffer()

Class * _TransferBuffer ( void  )

◆ dealloc()

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

◆ initialize()

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

◆ initWithDevice()

static TransferBuffer * initWithDevice ( TransferBuffer *  self,
RenderDevice *  device,
const SDL_GPUTransferBufferCreateInfo *  info 
)
static

◆ map()

static void * map ( const TransferBuffer *  self,
bool  cycle 
)
static

◆ unmap()

static void unmap ( const TransferBuffer *  self)
static

◆ writeData()

static void writeData ( const TransferBuffer *  self,
const void *  data,
Uint32  size,
bool  cycle 
)
static