diff options
author | quou <quou@disroot.org> | 2024-12-29 23:33:39 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 23:33:39 +1100 |
commit | 131f0b370f52f70f3dc4a6341d543ef2329cc00e (patch) | |
tree | e1cbeb0ccd976d371d2d6dcdee2928ce9539014f /model.hpp | |
parent | e25b20717523e579bb6f1e0d17b635c71bad6fab (diff) |
add a seperate update_cbuffers function to models to avoid doing it on every render
Diffstat (limited to 'model.hpp')
-rw-r--r-- | model.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 { |