MCPcopy Create free account
hub / github.com/DioxusLabs/anyrender / device

Method device

crates/wgpu_context/src/surface_renderer.rs:156–158  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

154 usage: surface_renderer_config.usage,
155 format: surface
156 .get_capabilities(&device_handle.adapter)
157 .formats
158 .into_iter()
159 .find(|it| surface_renderer_config.formats.contains(it))
160 .ok_or(WgpuContextError::UnsupportedSurfaceFormat)?,
161 width: surface_renderer_config.width,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected