gfx_window_glutin

Function new_views

Source
pub fn new_views<Cf, Df>(
    window: &WindowedContext<PossiblyCurrent>,
) -> (RenderTargetView<Resources, Cf>, DepthStencilView<Resources, Df>)
where Cf: RenderFormat, Df: DepthFormat,
Expand description

Create new main target views based on the current size of the window. Best called just after a WindowResize event.