Skip to main content

render_device

Function render_device 

Source
pub fn render_device() -> RenderDevice
Expand description

Ask the machine what it would render on.

Exactly one of RenderDevice::gpu and RenderDevice::gpu_error is set: a machine either names its adapter or gives the reason it has none.