libdonut 2.3.6
Application framework for cross-platform game development in C++20
Loading...
Searching...
No Matches
VertexArray.hpp
Go to the documentation of this file.
1#ifndef DONUT_GRAPHICS_VERTEX_ARRAY_HPP
2#define DONUT_GRAPHICS_VERTEX_ARRAY_HPP
3
6
7namespace donut::graphics {
8
13public:
20
31 [[nodiscard]] Handle get() const noexcept;
32
33private:
34 struct VertexArrayDeleter {
35 void operator()(Handle handle) const noexcept;
36 };
37
39};
40
41} // namespace donut::graphics
42
43#endif
Generic nullable RAII resource handle with exclusive ownership of a resource that is automatically de...
Definition UniqueHandle.hpp:21
Unique resource handle with exclusive ownership of a GPU vertex array.
Definition VertexArray.hpp:12
Handle get() const noexcept
Get an opaque handle to the GPU representation of the vertex array.
VertexArray()
Create a new empty GPU vertex array resource.
Definition Buffer.hpp:7
std::uint32_t Handle
Generic GPU resource handle.
Definition Handle.hpp:11