mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Fix pipeline name
This commit is contained in:
parent
57f798c0bd
commit
a76b40bbb4
2 changed files with 3 additions and 4 deletions
|
@ -89,8 +89,7 @@ fn setup(world: &mut World) {
|
|||
// red cube
|
||||
.add_archetype(MeshEntity {
|
||||
mesh: cube_handle,
|
||||
translation: Translation::new(0.0, 0.0, 1.0),
|
||||
..MeshEntity::default()
|
||||
..Default::default()
|
||||
})
|
||||
// camera
|
||||
.add_archetype(CameraEntity {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
asset::{AssetStorage, Handle},
|
||||
render::{render_graph::RenderGraph, Shader, ShaderSource},
|
||||
render::{render_graph::{RenderGraph, resource_name}, Shader, ShaderSource},
|
||||
};
|
||||
use legion::prelude::*;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
|
@ -117,7 +117,7 @@ pub fn update_shader_assignments(world: &mut World, render_graph: &mut RenderGra
|
|||
|
||||
let macroed_pipeline_handle = pipeline_descriptor_storage.add(macroed_pipeline);
|
||||
// TODO: get correct pass name
|
||||
render_graph.add_pipeline("main", macroed_pipeline_handle.clone());
|
||||
render_graph.add_pipeline(resource_name::pass::MAIN, macroed_pipeline_handle.clone());
|
||||
macroed_pipeline_handle
|
||||
} else {
|
||||
pipeline_handle.clone()
|
||||
|
|
Loading…
Reference in a new issue