diff options
author | Silas Bartha <silas@exvacuum.dev> | 2024-07-24 11:46:40 -0400 |
---|---|---|
committer | Silas Bartha <silas@exvacuum.dev> | 2024-07-24 11:47:21 -0400 |
commit | d7e1903369330c5438892c5ddfdbc7c1ef179633 (patch) | |
tree | 1913fc25e8d35e8743ea432ec80390f0f23538b2 /src/nodes.rs | |
parent | 52005369648e06cb2e1b36bb5dd7c19445aa4ee4 (diff) |
Renamed + Updated to Bevy 0.14 + Added 0BSD Option
Diffstat (limited to 'src/nodes.rs')
-rw-r--r-- | src/nodes.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nodes.rs b/src/nodes.rs index 9791ad1..4e2ddd3 100644 --- a/src/nodes.rs +++ b/src/nodes.rs @@ -4,19 +4,19 @@ use bevy::{ render_asset::RenderAssets, render_graph::{Node, NodeRunError, RenderGraphContext, RenderLabel}, render_resource::{ImageCopyBuffer, ImageDataLayout}, - renderer::RenderContext, + renderer::RenderContext, texture::GpuImage, }, }; -use crate::render_assets::FramebufferExtractSource; +use crate::render_assets::GpuHeadlessRenderSource; #[derive(RenderLabel, Clone, PartialEq, Eq, Debug, Hash)] -pub struct FramebufferExtractLabel; +pub struct HeadlessRenderCopyLabel; #[derive(Default)] -pub struct FramebufferExtractNode; +pub struct HeadlessRenderCopyNode; -impl Node for FramebufferExtractNode { +impl Node for HeadlessRenderCopyNode { fn run( &self, _graph: &mut RenderGraphContext, @@ -24,12 +24,12 @@ impl Node for FramebufferExtractNode { world: &World, ) -> Result<(), NodeRunError> { for (_, source) in world - .resource::<RenderAssets<FramebufferExtractSource>>() + .resource::<RenderAssets<GpuHeadlessRenderSource>>() .iter() { let Some(gpu_image) = world - .resource::<RenderAssets<Image>>() - .get(&source.source_handle) + .resource::<RenderAssets<GpuImage>>() + .get(source.source_handle.id()) else { return Ok(()); }; |