gpu_host API

← gpu_host · version 0.1.1

4 public items, in source order. Generated from the registry index, which re-derives them from the package source at publish time — so a signature here is the one that version actually ships.

pub fn backends() -> vector<text>

The names of the backends this machine has a table for, in the order they are asked. One that is listed may still open no window: its stack is looked for when a device opens.

pub fn open(width: integer, height: integer, title: text) -> gpu::Device?

Open a window of width x height pixels on the first backend that has one to give. Null when none does: the machine has no GPU this library knows, or no display.

pub fn open_fullscreen(title: text) -> gpu::Device?

Open a window over the whole screen, as gpu::open_fullscreen does, on the first backend that has one to give.

pub fn open_on(backend: text, width: integer, height: integer, title: text) -> gpu::Device?

Open a window on the backend named backend alone (a name backends() lists). For a test or a measurement that compares two backends; a game calls open.