Use trait instead to get load_fn and add name for pipeline
This commit is contained in:
parent
6099a3e27f
commit
2300c25603
4 changed files with 35 additions and 14 deletions
|
@ -61,7 +61,7 @@ impl Scene for MainScene {
|
|||
swapchain_image_view.format(),
|
||||
depth_image_view.format(),
|
||||
);
|
||||
pipeline_loader.register::<SimplePipeline>(SimplePipeline::new)?;
|
||||
pipeline_loader.register::<SimplePipeline>()?;
|
||||
pipeline_loader.load_pipelines()?;
|
||||
|
||||
let mut texture_loader = TextureLoader::new(app_context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue