initial
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <volk.h>
|
||||
#include "Gpu.hpp"
|
||||
#include "RenderPassLayout.hpp"
|
||||
|
||||
class RenderContext {
|
||||
private:
|
||||
VkCommandBuffer m_commandBuffer;
|
||||
Gpu *m_pGpu;
|
||||
RenderPassLayout *m_pLayout;
|
||||
VkFramebuffer m_framebuffer;
|
||||
|
||||
public:
|
||||
GET(m_commandBuffer, command_buffer);
|
||||
GET(m_framebuffer, framebuffer);
|
||||
GET(m_pGpu, gpu);
|
||||
GET(m_pLayout, layout);
|
||||
|
||||
RenderContext(Gpu *pGpu, VkCommandBuffer commandBuffer,
|
||||
RenderPassLayout *pLayout, VkFramebuffer framebuffer) :
|
||||
m_pGpu(pGpu), m_commandBuffer(commandBuffer), m_pLayout(pLayout),
|
||||
m_framebuffer(framebuffer) {
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user