From 131f0b370f52f70f3dc4a6341d543ef2329cc00e Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 23:33:39 +1100 Subject: add a seperate update_cbuffers function to models to avoid doing it on every render --- model.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'model.hpp') diff --git a/model.hpp b/model.hpp index 7130024..03cdef4 100644 --- a/model.hpp +++ b/model.hpp @@ -27,13 +27,16 @@ struct Model : public Asset { void destroy(Device* dev); void update_transforms(); - void render( + void update_cbuffers( Device* dev, - Arena* a, - Render_Pass& pass, const m4f& transform, const m4f& view_projection ); + void render( + Device* dev, + Arena* a, + Render_Pass& pass + ); }; struct Model_Loader : public Asset_Loader { -- cgit v1.2.3-54-g00ecf