Skip to main content

request_gpu

Function request_gpu 

Source
pub(crate) fn request_gpu(app: Entity) -> OnFrame
Expand description

Request the GPU context once a window exists to present through.

The window is created by the host at the end of the resume callback, so the request waits for a later frame; a GpuState that is no longer idle keeps a later frame from starting it twice.