diff options
author | quou <quou@disroot.org> | 2025-02-22 18:16:05 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-02-22 18:16:37 +1100 |
commit | ab9ed1ccadbd2c1b971bfbfb5ee651aa03a4a63e (patch) | |
tree | f08cddeb3f6ecb668dbac536d0ee2c533b0a55ee /renderer.hpp | |
parent | b10d6e5857481d4b018547c66585fd4f84a85937 (diff) |
shader globals
Diffstat (limited to 'renderer.hpp')
-rw-r--r-- | renderer.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/renderer.hpp b/renderer.hpp index ae638e0..c49c804 100644 --- a/renderer.hpp +++ b/renderer.hpp @@ -36,7 +36,9 @@ struct Renderer { static constexpr int max_cameras = 16; Hash_Map<Camera_Id, Camera, max_cameras> cameras; Drawlist drawlists[drawlist_count]; + Staged_Buffer globals; int camera_count; + int frame; Sampler_Id clamped_linear; Texture_Id env_cubemap; @@ -60,6 +62,8 @@ struct Renderer { const Camera& get_camera(Camera_Id cam) const; void destroy_camera(Camera_Id cam); void setcam(int did, Camera_Id cam); + + void update_globals(const Lighting* l, Device* d, Context& ctx); }; #endif |