Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
AGPUBuffer.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "core/Core.hpp"
4#include "utils/webgpu.hpp"
5
7class AGPUBuffer {
8 public:
9 virtual ~AGPUBuffer() = default;
10 virtual void Create(Engine::Core &core) = 0;
11 virtual void Destroy(Engine::Core &core) = 0;
12
13 virtual bool IsCreated(Engine::Core &core) const = 0;
14 virtual void Update(Engine::Core &core) = 0;
15
16 virtual const wgpu::Buffer &GetBuffer() const = 0;
17};
18} // namespace Graphic::Resource
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
Definition AGPUBuffer.hpp:7
virtual void Create(Engine::Core &core)=0
virtual const wgpu::Buffer & GetBuffer() const =0
virtual ~AGPUBuffer()=default
virtual void Destroy(Engine::Core &core)=0
virtual bool IsCreated(Engine::Core &core) const =0
virtual void Update(Engine::Core &core)=0
Definition AGPUBuffer.hpp:6