Struct kas_wgpu::draw::DrawPipe [−][src]
Shared pipeline data
Implementations
impl<C: CustomPipe> DrawPipe<C>[src]
pub fn new<CB: CustomPipeBuilder<Pipe = C>>(
custom: CB,
device: &Device,
shaders: &ShaderManager
) -> Self[src]
custom: CB,
device: &Device,
shaders: &ShaderManager
) -> Self
Construct
pub fn new_window(&self, device: &Device, size: Size) -> DrawWindow<C::Window>[src]
Construct per-window state
pub fn resize(
&self,
window: &mut DrawWindow<C::Window>,
device: &Device,
size: Size
) -> CommandBuffer[src]
&self,
window: &mut DrawWindow<C::Window>,
device: &Device,
size: Size
) -> CommandBuffer
Process window resize
pub fn render(
&mut self,
window: &mut DrawWindow<C::Window>,
device: &mut Device,
queue: &mut Queue,
frame_view: &TextureView,
clear_color: Color
)[src]
&mut self,
window: &mut DrawWindow<C::Window>,
device: &mut Device,
queue: &mut Queue,
frame_view: &TextureView,
clear_color: Color
)
Render batched draw instructions via rpass
Trait Implementations
impl<C: CustomPipe> DrawShared for DrawPipe<C>[src]
type Draw = DrawWindow<C::Window>
Auto Trait Implementations
impl<C> !RefUnwindSafe for DrawPipe<C>
impl<C> !Send for DrawPipe<C>
impl<C> !Sync for DrawPipe<C>
impl<C> Unpin for DrawPipe<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for DrawPipe<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<S, T> Cast<T> for S where
T: Conv<S>,
T: Conv<S>,
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
T: ConvFloat<S>,
pub fn cast_trunc(self) -> T
pub fn cast_nearest(self) -> T
pub fn cast_floor(self) -> T
pub fn cast_ceil(self) -> T
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
impl<T> Conv<T> for T
impl<T> Downcast<T> for T
impl<'a, T, X> Filter<&'a T> for X where
T: Clone,
X: Filter<T>, [src]
T: Clone,
X: Filter<T>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,