This commit is contained in:
Isuru Samarathunga
2025-10-16 22:59:03 +05:30
parent 160bf65a1f
commit 2062c35fde
4 changed files with 18 additions and 21 deletions

View File

@ -52,11 +52,16 @@ namespace ia::iae
SDL_GPURenderPass* ActiveRenderPass{};
SDL_GPUCommandBuffer* ActiveCommandBuffer{};
SDL_GPUColorTargetInfo ColorTargetInfo{};
SDL_GPUDepthStencilTargetInfo DepthStencilTargetInfo{};
class CameraComponent *ActiveCamera{};
};
struct DrawCommand
{
State DrawState{};
Geometry* GeometryHandle{};
};
public:
STATIC VOID Initialize();
STATIC VOID Terminate();
@ -87,11 +92,11 @@ namespace ia::iae
STATIC INT32 s_screenHeight;
STATIC SDL_GPUDevice *s_gpuDevice;
STATIC SDL_GPUTexture *s_renderTargetSceneColor;
STATIC SDL_GPUTexture *s_renderTargetSceneDepth;
STATIC SDL_GPUTexture *s_renderTargetDebugDrawColor;
STATIC Pipeline* s_geometryPipeline;
STATIC Pipeline* s_postprocessPipeline;
STATIC Geometry* s_quadGeometry;
STATIC Vector<DrawCommand> s_drawCommands;
friend class Engine;
};