From a837297eab7447db797198b84fde5f29f1c992ce Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 4 Aug 2024 10:57:07 +1000 Subject: simplify shader bindings a bit --- src/new_render/immdraw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/new_render/immdraw.c') 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 -- cgit v1.2.3-70-g09d2