summaryrefslogtreecommitdiff
path: root/src/new_render/immdraw.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-04 10:57:07 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-04 10:57:07 +1000
commita837297eab7447db797198b84fde5f29f1c992ce (patch)
tree01850c363b4b70ea9bd0e44e0378449745ab19db /src/new_render/immdraw.c
parentc71e165e7afe563b7a65d6b994314bb403df5f04 (diff)
simplify shader bindings a bit
Diffstat (limited to 'src/new_render/immdraw.c')
-rw-r--r--src/new_render/immdraw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/new_render/immdraw.c b/src/new_render/immdraw.c
index c79afa0..c711b0c 100644
--- a/src/new_render/immdraw.c
+++ b/src/new_render/immdraw.c
@@ -14,14 +14,15 @@ void Immdraw_Init(Immdraw_Storage* storage) {
// storage->sphere = Mesh_Create(&sphere_geo, false);
// pipeline / material
- ShaderData camera_data = { .get_layout = &Binding_Camera_GetLayout };
+ ShaderDataLayout camera_data = Binding_Camera_GetLayout(NULL);
GraphicsPipelineDesc pipeline_desc = {
.debug_name = "Immediate Draw Pipeline",
.data_layouts = { camera_data },
.data_layouts_count = 1,
};
- // storage->colour_pipeline = GPU_GraphicsPipeline_Create(pipeline_desc, GPU_GetDefaultRenderpass());
+ // storage->colour_pipeline = GPU_GraphicsPipeline_Create(pipeline_desc,
+ // GPU_GetDefaultRenderpass());
}
void Immdraw_Sphere(Transform tf, f32 size, Vec4 colour, bool wireframe) {} \ No newline at end of file