Skip to main content

install

Function install 

Source
pub fn install(ctx: &Context, rs: &RenderState) -> GpuInfo
Expand description

Installs the GPU path on a render state; viewports in ctx use it from the next frame. Records what the surface expects for every window: eframe 0.36 configures rs.target_format with wgpu’s default colour space (8-bit sRGB in practice). A host that configured its surface itself calls install_for_surface.

Install it before the first Viewport::show (in eframe’s app creation, from cc.wgpu_render_state): the first frame’s tile requests then take the device path. Device tiles asked for before are refused (no GPU path) and served from their fallback, then asked for again once the render device is there.