From 17f0db6607534c5bf1ba96153fabd3fdbb399ed9 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 23 Jun 2024 01:11:28 +1000 Subject: wip: debug quad shader --- src/renderer/backends/opengl/backend_opengl.c | 1 + src/renderer/backends/opengl/backend_opengl.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/renderer/backends') diff --git a/src/renderer/backends/opengl/backend_opengl.c b/src/renderer/backends/opengl/backend_opengl.c index 00b41b2..7d8aa01 100644 --- a/src/renderer/backends/opengl/backend_opengl.c +++ b/src/renderer/backends/opengl/backend_opengl.c @@ -120,6 +120,7 @@ gpu_pipeline* gpu_graphics_pipeline_create(struct graphics_pipeline_desc descrip } } + pipeline->renderpass = description.renderpass; pipeline->wireframe = description.wireframe; return pipeline; diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h index 9cfbb06..a5a9140 100644 --- a/src/renderer/backends/opengl/backend_opengl.h +++ b/src/renderer/backends/opengl/backend_opengl.h @@ -21,6 +21,7 @@ typedef struct gpu_pipeline_layout { } gpu_pipeline_layout; typedef struct gpu_pipeline { u32 shader_id; + gpu_renderpass* renderpass; vertex_description vertex_desc; buffer_handle uniform_bindings[MAX_PIPELINE_UNIFORM_BUFFERS]; bool wireframe; -- cgit v1.2.3-70-g09d2