pub fn set_target(ctx: &Context, viewport: ViewportId, target: DisplayTarget)Expand description
Sets what a window’s surface expects (for example when its surface or monitor changes, or when the application configured the surface itself). Viewports in that window follow on the next frame and signal it.