summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/c2.cpp b/c2.cpp
index d3b414b..b11b769 100644
--- a/c2.cpp
+++ b/c2.cpp
@@ -189,6 +189,10 @@ extern "C" int entrypoint() {
dev->get_ctx().submit(pb.build_rp());
pb.begin_rp();
+ pb.rp_depth_target(dev->get_depth_target(), Clear_Mode::restore);
+ Render_Pass& depth_prepass = pb.build_rp();
+
+ pb.begin_rp();
pb.rp_target(dev->get_backbuffer(), Clear_Mode::restore);
pb.rp_depth_target(dev->get_depth_target(), Clear_Mode::restore);
Render_Pass& pass2 = pb.build_rp();
@@ -212,6 +216,13 @@ extern "C" int entrypoint() {
monkey->render(
dev,
&frame_arena,
+ depth_prepass,
+ transform,
+ projection
+ );
+ monkey->render(
+ dev,
+ &frame_arena,
pass2,
transform,
projection