pub struct DrawPipe<C> { /* private fields */ }
Expand description
Shared pipeline data
Implementations
sourceimpl<C: CustomPipe> DrawPipe<C>
impl<C: CustomPipe> DrawPipe<C>
sourcepub fn new<CB: CustomPipeBuilder<Pipe = C>>(
custom: CB,
(device, queue): (Device, Queue),
raster_config: &RasterConfig
) -> Self
pub fn new<CB: CustomPipeBuilder<Pipe = C>>(
custom: CB,
(device, queue): (Device, Queue),
raster_config: &RasterConfig
) -> Self
Construct
sourcepub fn new_window(&self) -> DrawWindow<C::Window>
pub fn new_window(&self) -> DrawWindow<C::Window>
Construct per-window state
sourcepub fn resize(&self, window: &mut DrawWindow<C::Window>, size: Size)
pub fn resize(&self, window: &mut DrawWindow<C::Window>, size: Size)
Process window resize
sourcepub fn render(
&mut self,
window: &mut DrawWindow<C::Window>,
frame_view: &TextureView,
clear_color: Color
)
pub fn render(
&mut self,
window: &mut DrawWindow<C::Window>,
frame_view: &TextureView,
clear_color: Color
)
Render batched draw instructions via rpass
Auto Trait Implementations
impl<C> !RefUnwindSafe for DrawPipe<C>
impl<C> Send for DrawPipe<C>where
C: Send,
impl<C> !Sync for DrawPipe<C>
impl<C> Unpin for DrawPipe<C>where
C: Unpin,
impl<C> !UnwindSafe for DrawPipe<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self
to T
Read more
fn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self
to T
Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more