From 5b548cb866405b6716d5f904e4df75c07dbbad9b Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 2 Mar 2025 17:30:17 +1100 Subject: nevermind --- renderer.hpp | 43 ++----------------------------------------- 1 file changed, 2 insertions(+), 41 deletions(-) (limited to 'renderer.hpp') diff --git a/renderer.hpp b/renderer.hpp index 20c7f98..c49c804 100644 --- a/renderer.hpp +++ b/renderer.hpp @@ -10,11 +10,8 @@ enum { FORWARD, SHADOW_MAP_START, SHADOW_MAP_END = SHADOW_MAP_START + Lighting::max_shadows, - SHADOW_JIT_START = SHADOW_MAP_END, - SHADOW_JIT_END = SHADOW_JIT_START + Lighting::max_shadows, - drawlist_count = SHADOW_JIT_END }; + drawlist_count = SHADOW_MAP_END }; -struct Asset_Arena; struct Model_Instance; struct Renderer; @@ -35,62 +32,26 @@ struct Drawlist { ); }; -struct Fullscreen_Quad { - Buffer_Id vb; - - void init(Device* d); - void destroy(Device* d); - void render( - Context& ctx, - Pipeline& pip, - Render_Pass& pass, - int bind - ); -}; - struct Renderer { static constexpr int max_cameras = 16; Hash_Map cameras; Drawlist drawlists[drawlist_count]; Staged_Buffer globals; - Fullscreen_Quad quad; int camera_count; int frame; - Shader* ts_shader; - int ts_shadowmap_binding; - int ts_depthmap_binding; - int ts_prev_binding; - int ts_vert_binding; - int ts_config_binding; - int ts_caster_config_binding; - int ts_casters_binding; - int ts_globals_binding; - int ts_prev_occlusion_binding; - Sampler_Id ts_sampler; - Staged_Buffer ts_config, ts_config2; - - m4f prev_vp; - Sampler_Id clamped_linear; Texture_Id env_cubemap; - void init(Arena* arena, Device* d, Asset_Arena& assets); + void init(Arena* arena, Device* d); void destroy(Device* d); void set_camera(Camera_Id cam, int drawlist); - void make_ts_sampler(Device* d); void render( Device* dev, Arena* a, Texture_Id hdr_target, const Lighting* l ); - void temporal_shadows( - Device* dev, - Context& ctx, - const Lighting* l, - Pipeline_Builder& pb - ); void add_model(int drawlist, Model_Instance* m); void rem_model(int drawlist, Model_Instance* m); -- cgit v1.2.3-54-g00ecf