Fix pipeline name

This commit is contained in:
Carter Anderson 2020-02-17 19:15:28 -08:00
parent 57f798c0bd
commit a76b40bbb4
2 changed files with 3 additions and 4 deletions

View file

@ -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 {

View file

@ -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()