docs
Loading...
Searching...
No Matches
ULGPUMemory

#include <AppCore/CAPI/CAPI_GPUDriverAsync.h>

Overview

A block of memory inside a buffer.

buffer is the whole buffer the block lives in (eg, one chunk your allocator handed out, or an image's pixels). Its user data (ulBufferGetUserData()) is whatever you set when you created it, eg, your native resource.

Public Attributes

ULBuffer buffer
 The buffer holding this block (NULL when the block is empty).
size_t offset
 The start of the block, in bytes from ulBufferGetData().
size_t size
 The size of the block, in bytes.
unsigned int usage
 A combination of ULGPUMemoryUsage values.

Member Data Documentation

◆ buffer

ULBuffer buffer

The buffer holding this block (NULL when the block is empty).

◆ offset

size_t offset

The start of the block, in bytes from ulBufferGetData().

◆ size

size_t size

The size of the block, in bytes.

◆ usage

unsigned int usage

A combination of ULGPUMemoryUsage values.


The documentation for this struct was generated from the following file: