From e1cc0e9a9d191bcd3a634be46fd3555d430b07a8 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: feat(skeleton): draw pass aware of position --- stockton-skeleton/src/context.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'stockton-skeleton/src/context.rs') diff --git a/stockton-skeleton/src/context.rs b/stockton-skeleton/src/context.rs index 802b8ca..5e2d3a3 100644 --- a/stockton-skeleton/src/context.rs +++ b/stockton-skeleton/src/context.rs @@ -19,6 +19,7 @@ use super::{ target::{SwapchainProperties, TargetChain}, }; use crate::{ + draw_passes::Singular, error::{EnvironmentError, LockPoisoned}, types::*, }; @@ -56,7 +57,9 @@ pub struct RenderingContext { impl RenderingContext { /// Create a new RenderingContext for the given window. - pub fn new, DP: DrawPass>(window: &Window) -> Result { + pub fn new, DP: DrawPass>( + window: &Window, + ) -> Result { // Create surface let (instance, surface, mut adapters) = unsafe { let instance = @@ -208,7 +211,11 @@ impl RenderingContext { } /// Draw onto the next frame of the swapchain - pub fn draw_next_frame(&mut self, session: &Session, dp: &mut DP) -> Result<()> { + pub fn draw_next_frame>( + &mut self, + session: &Session, + dp: &mut DP, + ) -> Result<()> { let mut device = self .device .write() -- cgit v1.2.3