Use trait instead to get load_fn and add name for pipeline

This commit is contained in:
Florian RICHER 2025-06-09 20:53:22 +02:00
parent 6099a3e27f
commit 2300c25603
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
4 changed files with 35 additions and 14 deletions

View file

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