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"
#include "TransferBuffer.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 CopyPass * init (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()

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

◆ copyTextureToTexture()

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

◆ dealloc()

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

◆ downloadBuffer()

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

◆ downloadQueryResults()

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

◆ downloadTexture()

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

◆ init()

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

◆ initialize()

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

◆ uploadBuffer()

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

◆ uploadData()

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

◆ uploadTexture()

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