SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::GPUBuffer Class Reference

An opaque handle representing a buffer. More...

Public Member Functions

constexpr GPUBuffer (GPUBufferRaw gPUBuffer={}) noexcept
 Wraps GPUBuffer.
 GPUBuffer (GPUDeviceRef device, const GPUBufferCreateInfo &createinfo)
 Creates a buffer object to be used in graphics or compute workflows.
constexpr operator GPUBufferRaw () const noexcept
 Unwraps to the underlying GPUBuffer.

Detailed Description

Constructor & Destructor Documentation

◆ GPUBuffer()

SDL::GPUBuffer::GPUBuffer ( GPUBufferRaw gPUBuffer = {})
inlineconstexprnoexcept

Wraps GPUBuffer.

Parameters
gPUBufferthe value to be wrapped

Member Function Documentation

◆ operator GPUBufferRaw()

SDL::GPUBuffer::operator GPUBufferRaw ( ) const
inlineconstexprnoexcept

Unwraps to the underlying GPUBuffer.

Returns
the underlying GPUBufferRaw.

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