Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
VulkanBuffer.hpp
1#pragma once
2
3#include <Common/Graphics/Buffer.hpp>
4#include <vulkan/vulkan.h>
5
6namespace Grindstone::GraphicsAPI::Vulkan {
7 class Buffer : public Grindstone::GraphicsAPI::Buffer {
8 public:
9 Buffer(const Grindstone::GraphicsAPI::Buffer::CreateInfo& createInfo);
10 virtual ~Buffer() override;
11
12 virtual void* Map() override;
13 virtual void Unmap() override;
14 virtual void UploadData(const void* data, size_t size, size_t offset) override;
15
16 virtual VkBuffer GetBuffer() const;
17
18 protected:
19 VkDeviceMemory deviceMemory = nullptr;
20 VkBuffer bufferObject = nullptr;
21 };
22}
Definition Buffer.hpp:56