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

Macros

#define _Class   _CopyPass
 

Functions

static void dealloc (Object *self)
 
static void copyBufferToBuffer (const CopyPass *self, const SDL_GPUBufferLocation *src, const SDL_GPUBufferLocation *dst, Uint32 size, bool cycle)
 
static void copyTextureToTexture (const CopyPass *self, const SDL_GPUTextureLocation *src, const SDL_GPUTextureLocation *dst, Uint32 w, Uint32 h, Uint32 d, bool cycle)
 
static void downloadBuffer (const CopyPass *self, const SDL_GPUBufferRegion *src, const SDL_GPUTransferBufferLocation *dst)
 
static void downloadTexture (const CopyPass *self, const SDL_GPUTextureRegion *src, const SDL_GPUTextureTransferInfo *dst)
 
static void downloadQueryResults (const CopyPass *self, QueryPool *pool, Uint32 firstQuery, Uint32 count, const SDL_GPUTransferBufferLocation *dst)
 
static CopyPassinit (CopyPass *self, CommandBuffer *commands, SDL_GPUCopyPass *pass)
 
static void uploadBuffer (const CopyPass *self, const SDL_GPUTransferBufferLocation *src, const SDL_GPUBufferRegion *dst, bool cycle)
 
static void uploadData (const CopyPass *self, SDL_GPUBuffer *dst, const void *data, Uint32 size, Uint32 offset, bool cycle)
 
static void uploadTexture (const CopyPass *self, const SDL_GPUTextureTransferInfo *src, const SDL_GPUTextureRegion *dst, bool cycle)
 
static void initialize (Class *clazz)
 
Class * _CopyPass (void)
 

Macro Definition Documentation

◆ _Class

#define _Class   _CopyPass

Function Documentation

◆ _CopyPass()

Class * _CopyPass ( void  )

◆ copyBufferToBuffer()

static void copyBufferToBuffer ( const CopyPass self,
const SDL_GPUBufferLocation *  src,
const SDL_GPUBufferLocation *  dst,
Uint32  size,
bool  cycle 
)
static

◆ copyTextureToTexture()

static void copyTextureToTexture ( const CopyPass self,
const SDL_GPUTextureLocation *  src,
const SDL_GPUTextureLocation *  dst,
Uint32  w,
Uint32  h,
Uint32  d,
bool  cycle 
)
static

◆ dealloc()

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

◆ downloadBuffer()

static void downloadBuffer ( const CopyPass self,
const SDL_GPUBufferRegion *  src,
const SDL_GPUTransferBufferLocation *  dst 
)
static

◆ downloadQueryResults()

static void downloadQueryResults ( const CopyPass self,
QueryPool pool,
Uint32  firstQuery,
Uint32  count,
const SDL_GPUTransferBufferLocation *  dst 
)
static

◆ downloadTexture()

static void downloadTexture ( const CopyPass self,
const SDL_GPUTextureRegion *  src,
const SDL_GPUTextureTransferInfo *  dst 
)
static

◆ init()

static CopyPass * init ( CopyPass self,
CommandBuffer commands,
SDL_GPUCopyPass *  pass 
)
static

◆ initialize()

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

◆ uploadBuffer()

static void uploadBuffer ( const CopyPass self,
const SDL_GPUTransferBufferLocation *  src,
const SDL_GPUBufferRegion *  dst,
bool  cycle 
)
static

◆ uploadData()

static void uploadData ( const CopyPass self,
SDL_GPUBuffer *  dst,
const void *  data,
Uint32  size,
Uint32  offset,
bool  cycle 
)
static

◆ uploadTexture()

static void uploadTexture ( const CopyPass self,
const SDL_GPUTextureTransferInfo *  src,
const SDL_GPUTextureRegion *  dst,
bool  cycle 
)
static