This commit is contained in:
Isuru Samarathunga
2025-10-16 23:00:50 +05:30
parent 2062c35fde
commit c813b02b90
2 changed files with 19 additions and 10 deletions

View File

@ -52,16 +52,11 @@ 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();
@ -92,11 +87,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;
};