Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
GraphicsBufferVK.hpp
Go to the documentation of this file.
1#pragma once
2#include <GraphicsAdapter.hpp>
3#include "Vulkan.hpp"
4
5namespace Faro
6{
8 {
9 public:
10 void Init() override;
11
12 void Destroy() override;
13
14 void Upload(uint8* data) override;
15
16 void TransitionResource(VkCommandBuffer commandBuffer, GraphicsResourceState state);
17
18 protected:
20
21 VkDeviceMemory heapMemory = nullptr;
22 VkBuffer heapBuffer = nullptr;
23 VkImage heapImage = nullptr;
24 };
25}
Definition GraphicsBufferVK.hpp:8
VkImage heapImage
Definition GraphicsBufferVK.hpp:23
VkBuffer heapBuffer
Definition GraphicsBufferVK.hpp:22
void Init() override
Run the initialization logic of this object. Should be overriden by deriving classes.
Definition GraphicsBufferVK.cpp:44
uint32 GetMemoryType()
Definition GraphicsBufferVK.cpp:184
void Destroy() override
Run the destruction logic of this class. This also frees its memory.
Definition GraphicsBufferVK.cpp:130
void TransitionResource(VkCommandBuffer commandBuffer, GraphicsResourceState state)
Definition GraphicsBufferVK.cpp:152
VkDeviceMemory heapMemory
Definition GraphicsBufferVK.hpp:21
void Upload(uint8 *data) override
Prepare the given data so it can be uploaded to the graphics adapter. This buffer must be created as ...
Definition GraphicsBufferVK.cpp:147
A buffer storing graphics related data. Created by GraphicsAdapter::CreateBuffer.
Definition GraphicsBuffer.hpp:20
Definition Array.hpp:8
GraphicsResourceState
Describes the state of a graphics buffer.
Definition GraphicsBuffer.hpp:9
uint32_t uint32
Definition Primitives.hpp:12
uint8_t uint8
Definition Primitives.hpp:6