Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
RenderPass.hpp
1#pragma once
2
3#include "Formats.hpp"
4#include <stdint.h>
5
6namespace Grindstone::GraphicsAPI {
10 class RenderPass {
11 public:
13 Format colorFormat = Format::Invalid;
14 bool shouldClear = false;
15 GraphicsAPI::MemoryUsage memoryUsage = GraphicsAPI::MemoryUsage::GPUOnly;
16 };
17
18 struct CreateInfo {
19 const char* debugName = nullptr;
20 AttachmentInfo* colorAttachments = nullptr;
21 uint32_t colorAttachmentCount = 0;
22 Format depthFormat = Format::Invalid;
23 bool shouldClearDepthOnLoad = true;
24 float debugColor[4];
25 };
26
27 virtual const char* GetDebugName() const = 0;
28 virtual const float* GetDebugColor() const = 0;
29 virtual ~RenderPass() {};
30 };
31}
Definition RenderPass.hpp:10