diff options
author | quou <quou@disroot.org> | 2024-12-29 23:06:39 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 23:27:51 +1100 |
commit | 39fc0b5af67aa2dc0763394b0727e919840f9f57 (patch) | |
tree | 1bc1cf8544022bfad1e98059f48edc267b00ea23 /c2.cpp | |
parent | 80b8a59afce450a87af7ca4082529d899b639779 (diff) |
debug markers
Diffstat (limited to 'c2.cpp')
-rw-r--r-- | c2.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -182,7 +182,11 @@ extern "C" int entrypoint() { draw.vertex_count = 3; draw.instance_count = 1; - dev->get_ctx().submit(draw, pip, pass); + Context& ctx = dev->get_ctx(); + + ctx.debug_push("autism triangle"); + ctx.submit(draw, pip, pass); + ctx.debug_pop(); pb.begin_rp(); pb.rp_depth_target(dev->get_depth_target(), 1.0f); @@ -213,6 +217,7 @@ extern "C" int entrypoint() { raxis )); monkey->update_transforms(); + ctx.debug_push("depth prepass"); monkey->render( dev, &frame_arena, @@ -220,6 +225,8 @@ extern "C" int entrypoint() { transform, projection ); + ctx.debug_pop(); + ctx.debug_push("forward"); monkey->render( dev, &frame_arena, @@ -227,8 +234,11 @@ extern "C" int entrypoint() { transform, projection ); + ctx.debug_pop(); + ctx.debug_push("ui"); ui->render(&frame_arena, dev->get_backbuffer()); + ctx.debug_pop(); r += 10; rot += 0.05f; |