From 59b5e4463d6eec0de27d6da6c85f8c719674e966 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:24 +0100 Subject: refactor(skeleton): clean up targetchain --- stockton-render/src/ui.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'stockton-render/src/ui.rs') diff --git a/stockton-render/src/ui.rs b/stockton-render/src/ui.rs index 8401f63..89afe18 100644 --- a/stockton-render/src/ui.rs +++ b/stockton-render/src/ui.rs @@ -275,7 +275,7 @@ impl<'a, P: PassPosition> IntoDrawPass, P> for () { .renderpass(RenderpassSpec { colors: vec![AttachmentSpec { attachment: Attachment { - format: Some(context.target_chain().properties().format), + format: Some(context.properties().color_format), samples: 1, ops: P::attachment_ops(), stencil_ops: P::attachment_ops(), @@ -312,22 +312,21 @@ impl<'a, P: PassPosition> IntoDrawPass, P> for () { let pipeline = spec .build( &mut device, - context.target_chain().properties().extent, - context.target_chain().properties(), + context.properties().extent, once(&*repo.get_ds_layout()?), ) .context("Error building pipeline")?; - let fat = context.target_chain().properties().framebuffer_attachment(); + let fat = context.properties().swapchain_framebuffer_attachment(); let framebuffers = TargetSpecificResources::new( || unsafe { Ok(device.create_framebuffer( &pipeline.renderpass, IntoIter::new([fat.clone()]), - context.target_chain().properties().extent, + context.properties().extent, )?) }, - context.target_chain().properties().image_count as usize, + context.properties().image_count as usize, )?; (pipeline, framebuffers) }; -- cgit v1.2.3