diff options
author | quou <quou@disroot.org> | 2025-01-08 19:00:33 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-08 19:00:33 +1100 |
commit | 93ceef3808bb3f9fa2bf9ad0df576be1e2f9cf2e (patch) | |
tree | a1db1cc05ffffc0520c7d41ec3b1ec5ff29737b6 /c2.cpp | |
parent | a5a6fd1a552bc4335890770d75f9d1120b30bc63 (diff) |
automagic texture transitions
Diffstat (limited to 'c2.cpp')
-rw-r--r-- | c2.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -236,6 +236,7 @@ struct Sky { cb->iview = cam.get_view().inverse(); cb->iprojection = cam.get_proj().inverse(); config.unmap(d); + config.update(d->get_ctx()); render_imp( d, a, @@ -284,7 +285,6 @@ struct Sky { draw.verts = vbb; draw.vertex_count = 3; draw.instance_count = 1; - config.update(ctx); ctx.submit(draw, pip, pass); } }; @@ -407,7 +407,6 @@ struct Env_Probe { Context& ctx = dev->get_ctx(); update_cbuffer(dev); for (i = 0; i < 6; i++) { - ctx.transition(faces[i], Resource_State::render_target); pb.begin_rp(); pb.rp_target(faces[i], Clear_Mode::discard); pb.rp_depth_target(cubemap_depth, 1.0f); @@ -421,7 +420,6 @@ struct Env_Probe { cubemap_res, cubemap_res ); - ctx.transition(faces[i], Resource_State::shader_read); } } }; |