Finality Engine
Loading...
Searching...
No Matches
VKGeometryBuffer.h
Go to the documentation of this file.
1
6#pragma once
7#include "VKCore.h"
8#include <memory>
9
10namespace FINALITY
11{
12 class VKRenderDevice;
13
16 {
17 public:
19 VkBuffer Buffer = VK_NULL_HANDLE;
20 VkDeviceMemory Memory = VK_NULL_HANDLE;
21 VkDevice Device = VK_NULL_HANDLE;
22 static std::shared_ptr<VKGeometryBuffer> Upload(VKRenderDevice& device, const void* data, VkDeviceSize size, VkBufferUsageFlags usage);
23 };
24
27 {
28 public:
31 private:
32 VKRenderDevice& m_Device;
33 bool m_OwnsBatch;
34 };
35}
static std::shared_ptr< VKGeometryBuffer > Upload(VKRenderDevice &device, const void *data, VkDeviceSize size, VkBufferUsageFlags usage)
VKGeometryUploadScope(VKRenderDevice &device)