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 /c2.cpp | |
parent | e25b20717523e579bb6f1e0d17b635c71bad6fab (diff) |
add a seperate update_cbuffers function to models to avoid doing it on every render
Diffstat (limited to 'c2.cpp')
-rw-r--r-- | c2.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -215,22 +215,23 @@ extern "C" int entrypoint() { raxis )); monkey->update_transforms(); + monkey->update_cbuffers( + dev, + transform, + projection + ); ctx.debug_push("depth prepass"); monkey->render( dev, &frame_arena, - depth_prepass, - transform, - projection + depth_prepass ); ctx.debug_pop(); ctx.debug_push("forward"); monkey->render( dev, &frame_arena, - pass2, - transform, - projection + pass2 ); ctx.debug_pop(); |