summaryrefslogtreecommitdiff
path: root/src/renderer/backends/opengl/backend_opengl.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-22 15:12:44 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-22 15:12:44 +1000
commit51d0535a8d49b72ab1e47acf30f654403a94c423 (patch)
treec8e8124c7a35c2fcfa7afa857b50ce0cdb15ba7c /src/renderer/backends/opengl/backend_opengl.h
parent6fccac3372170153b59e829d11c6c0b0a5c2bc77 (diff)
wip: porting shadowmaps to RAL
Diffstat (limited to 'src/renderer/backends/opengl/backend_opengl.h')
-rw-r--r--src/renderer/backends/opengl/backend_opengl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h
index f52bd79..f588643 100644
--- a/src/renderer/backends/opengl/backend_opengl.h
+++ b/src/renderer/backends/opengl/backend_opengl.h
@@ -8,6 +8,8 @@
#define MAX_PIPELINE_UNIFORM_BUFFERS 32
+#define OPENGL_DEFAULT_FRAMEBUFFER 0
+
typedef struct gpu_swapchain {
u32x2 dimensions;
} gpu_swapchain;
@@ -23,6 +25,8 @@ typedef struct gpu_pipeline {
bool wireframe;
} gpu_pipeline;
typedef struct gpu_renderpass {
+ u32 fbo;
+ gpu_renderpass_desc description;
void *pad
} gpu_renderpass;
typedef struct gpu_cmd_encoder {