From 9cb4bfacc69b2a95ce8e9250afc33fb04d1ba548 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 10 Aug 2024 14:06:15 +1000 Subject: remove old code --- src/render/immdraw.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/render/immdraw.c (limited to 'src/render/immdraw.c') diff --git a/src/render/immdraw.c b/src/render/immdraw.c new file mode 100644 index 0000000..c711b0c --- /dev/null +++ b/src/render/immdraw.c @@ -0,0 +1,28 @@ +#include "immdraw.h" +#include "log.h" +#include "primitives.h" +#include "ral_common.h" +#include "ral_impl.h" +#include "ral_types.h" +#include "render.h" +#include "shader_layouts.h" + +void Immdraw_Init(Immdraw_Storage* storage) { + INFO("Immediate drawing initialisation"); + // meshes + // Geometry sphere_geo = Geo_CreateUVsphere(1.0, 8, 8); + // storage->sphere = Mesh_Create(&sphere_geo, false); + + // pipeline / material + 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()); +} + +void Immdraw_Sphere(Transform tf, f32 size, Vec4 colour, bool wireframe) {} \ No newline at end of file -- cgit v1.2.3-70-g09d2