SDL3pp
A slim C++ wrapper for SDL3
|
An opaque handle representing a transfer buffer. More...
Public Member Functions | |
constexpr | GPUTransferBuffer (GPUTransferBufferRaw gPUTransferBuffer={}) |
Wraps GPUTransferBuffer. More... | |
GPUTransferBuffer (GPUDeviceParam device, const GPUTransferBufferCreateInfo &createinfo) | |
Creates a transfer buffer to be used when uploading to or downloading from graphics resources. More... | |
constexpr bool | operator== (const GPUTransferBuffer &other) const =default |
Default comparison operator. | |
constexpr bool | operator== (GPUTransferBufferRaw gPUTransferBuffer) const |
Compares with the underlying type. | |
constexpr | operator GPUTransferBufferRaw () const |
Unwraps to the underlying GPUTransferBuffer. More... | |
Used for transferring data to and from the device.
|
inlineconstexpr |
gPUTransferBuffer | the value to be wrapped |
|
inline |
Download buffers can be particularly expensive to create, so it is good practice to reuse them if data will be downloaded regularly.
There are optional properties that can be provided through props
. These are the supported properties:
prop::GPUTransferBuffer.CREATE_NAME_STRING
: a name that can be displayed in debugging tools.device | a GPU Context. |
createinfo | a struct describing the state of the transfer buffer to create. |
Error | on failure. |
|
inlineconstexpr |