mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
`BackendBit::all()` allows GL/surfman to be used on macOS which appears to prevent rendering with Metal (e.g. hello-triangle displays an empty window). surfman will be removed in later versions of gfx, which will allow us to switch back to `BackendBit::all()` in the examples.
hello
This example prints output describing the adapter in use.
To Run
cargo run --example hello
Example output
# You might see different output as it depends on your graphics card
AdapterInfo { name: "Intel(R) UHD Graphics 630", vendor: 0, device: 0, device_type: IntegratedGpu, backend: Metal }