Files
Towards/external/loft/modules/base/include/RenderContext.hpp
T
Martin Slachta a04f0dc262 initial
2026-07-18 14:31:15 +02:00

27 lines
577 B
C++

#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) {
}
};