libdonut  2.3.2
Application framework for cross-platform game development in C++20
Classes | Public Member Functions | List of all members
donut::graphics::Buffer Class Reference

Unique resource handle with exclusive ownership of a GPU memory buffer. More...

#include <donut/graphics/Buffer.hpp>

Public Member Functions

 Buffer ()
 Create a new empty GPU memory buffer resource. More...
 
Handle get () const noexcept
 Get an opaque handle to the GPU representation of the buffer. More...
 

Detailed Description

Unique resource handle with exclusive ownership of a GPU memory buffer.

Constructor & Destructor Documentation

◆ Buffer()

donut::graphics::Buffer::Buffer ( )

Create a new empty GPU memory buffer resource.

Exceptions
graphics::Erroron failure to create the buffer object.

Member Function Documentation

◆ get()

Handle donut::graphics::Buffer::get ( ) const
inlinenoexcept

Get an opaque handle to the GPU representation of the buffer.

Returns
a non-owning resource handle to the GPU representation of the buffer.
Note
This function is used internally by the implementations of various abstractions and is not intended to be used outside of the graphics module. The returned handle has no meaning to application code.

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