libdonut  2.3.2
Application framework for cross-platform game development in C++20
VertexArray.hpp
Go to the documentation of this file.
1 #ifndef DONUT_GRAPHICS_VERTEX_ARRAY_HPP
2 #define DONUT_GRAPHICS_VERTEX_ARRAY_HPP
3 
4 #include <donut/UniqueHandle.hpp>
6 
7 namespace donut::graphics {
8 
12 class VertexArray {
13 public:
20 
31  [[nodiscard]] Handle get() const noexcept;
32 
33 private:
34  struct VertexArrayDeleter {
35  void operator()(Handle handle) const noexcept;
36  };
37 
39 };
40 
41 } // namespace donut::graphics
42 
43 #endif
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