aboutsummaryrefslogtreecommitdiff
path: root/src/nodes.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-11-21 12:23:45 -0500
committerLibravatar Silas Bartha <[email protected]>2024-11-21 12:23:45 -0500
commit48382cc39b73b6c3317637c77862a725de310ce1 (patch)
tree0a9b90c185a31c79a8451ce89b7f51b26d858582 /src/nodes.rs
parent68c0010bd44276544469e4ee6487076067f11f80 (diff)
Thu Nov 21 12:23:45 PM EST 2024 (Introduced Defferred Rendering/Shading Threshold)
Diffstat (limited to 'src/nodes.rs')
-rw-r--r--src/nodes.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodes.rs b/src/nodes.rs
index 22ca8d3..1c750c7 100644
--- a/src/nodes.rs
+++ b/src/nodes.rs
@@ -57,6 +57,11 @@ impl ViewNode for OutlineRenderNode {
return Ok(());
};
+ let Some(deferred_buffer_view) = view_prepass_textures.deferred_view() else {
+ error!("Failed to get deferred buffer view");
+ return Ok(());
+ };
+
let post_process = view_target.post_process_write();
let bind_group = render_context.render_device().create_bind_group(
@@ -67,6 +72,7 @@ impl ViewNode for OutlineRenderNode {
&render_pipeline.screen_sampler,
normal_buffer_view,
&render_pipeline.normal_sampler,
+ deferred_buffer_view,
uniform_binding,
)),
);