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
6
namespace
Grindstone::GraphicsAPI::Vulkan {
7
class
UniformBuffer
:
public
Grindstone::GraphicsAPI::UniformBuffer
{
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
}
Grindstone::GraphicsAPI::UniformBuffer
Definition
UniformBuffer.hpp:10
Grindstone::GraphicsAPI::Vulkan::UniformBuffer
Definition
VulkanUniformBuffer.hpp:7
Grindstone::GraphicsAPI::UniformBuffer::CreateInfo
Definition
UniformBuffer.hpp:12
sources
code
Plugins
GraphicsVulkan
VulkanUniformBuffer.hpp
Generated by
1.12.0