Trait kas_wgpu::draw::CustomWindow
source · [−]pub trait CustomWindow: 'static {
type Param;
fn invoke(&mut self, pass: PassId, rect: Rect, param: Self::Param);
}
Expand description
Per-window state for a custom draw pipe
One instance is constructed per window. Since the CustomPipe
is not
accessible during a widget’s kas::Layout::draw
calls, this struct must
batch per-frame draw data.
Required Associated Types
Required Methods
Implementations on Foreign Types
sourceimpl CustomWindow for ()
impl CustomWindow for ()
A dummy implementation (does nothing)