aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2024-07-21 19:27:11 -0400
committerLibravatar Silas Bartha <silas@exvacuum.dev>2024-07-21 19:27:11 -0400
commit56aee7bc7c5ee71de8e5d6997e877759b5d9e9b7 (patch)
treecaa87a9af161fdfc795dfe197054b189ebdfacbf /src
parent347594e4217c8947dfae0faf888f1ded7c0329e5 (diff)
Update to 0.14 + Add 0BSD option0.2
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
-rw-r--r--src/nodes.rs12
2 files changed, 6 insertions, 10 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 28eecd8..0f69fd3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,7 +33,7 @@ impl Plugin for DitherPostProcessPlugin {
app.add_plugins((ExtractComponentPlugin::<DitherPostProcessSettings>::default(),));
- let Ok(render_app) = app.get_sub_app_mut(RenderApp) else {
+ let Some(render_app) = app.get_sub_app_mut(RenderApp) else {
return;
};
@@ -53,7 +53,7 @@ impl Plugin for DitherPostProcessPlugin {
}
fn finish(&self, app: &mut App) {
- let Ok(render_app) = app.get_sub_app_mut(RenderApp) else {
+ let Some(render_app) = app.get_sub_app_mut(RenderApp) else {
return;
};
diff --git a/src/nodes.rs b/src/nodes.rs
index 377718a..1cf3972 100644
--- a/src/nodes.rs
+++ b/src/nodes.rs
@@ -2,14 +2,10 @@ use bevy::{
ecs::query::QueryItem,
prelude::*,
render::{
- render_asset::RenderAssets,
- render_graph::{NodeRunError, RenderGraphContext, RenderLabel, ViewNode},
- render_resource::{
+ render_asset::RenderAssets, render_graph::{NodeRunError, RenderGraphContext, RenderLabel, ViewNode}, render_resource::{
BindGroupEntries, Operations, PipelineCache, RenderPassColorAttachment,
RenderPassDescriptor,
- },
- renderer::RenderContext,
- view::ViewTarget,
+ }, renderer::RenderContext, texture::GpuImage, view::ViewTarget
},
};
@@ -46,8 +42,8 @@ impl ViewNode for DitherRenderNode {
let post_process = view_target.post_process_write();
let Some(threshold_map) = world
- .resource::<RenderAssets<Image>>()
- .get(dither_post_process_settings.handle())
+ .resource::<RenderAssets<GpuImage>>()
+ .get(dither_post_process_settings.handle().id())
else {
warn!("Failed to get threshold map, skipping...");
return Ok(());