Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
VulkanUniformBuffer.hpp
1#pragma once
2
3#include <Common/Graphics/UniformBuffer.hpp>
4#include <vulkan/vulkan.h>
5
6namespace Grindstone::GraphicsAPI::Vulkan {
8 public:
9 UniformBuffer(const CreateInfo& createInfo);
10 virtual ~UniformBuffer();
11
12 virtual void UpdateBuffer(void* content) override;
13 virtual uint32_t GetSize() const override;
14 virtual void Bind() override;
15
16 virtual VkBuffer GetBuffer() const;
17 private:
18 VkDeviceMemory memory = nullptr;
19 VkBuffer buffer = nullptr;
20 uint32_t size = 0;
21 };
22}
Definition UniformBuffer.hpp:10
Definition VulkanUniformBuffer.hpp:7