diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:24 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:24 +0100 |
commit | 59b5e4463d6eec0de27d6da6c85f8c719674e966 (patch) | |
tree | d1833c4702410df6f976d95ba5c9169b03125b35 /stockton-render/src/ui.rs | |
parent | 6b8395152b8e0c7ddd714e195e4e92d464b8147c (diff) |
refactor(skeleton): clean up targetchain
Diffstat (limited to 'stockton-render/src/ui.rs')
-rw-r--r-- | stockton-render/src/ui.rs | 11 |
1 files changed, 5 insertions, 6 deletions
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<UiDrawPass<'a>, 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<UiDrawPass<'a>, 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) }; |