mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
Docstring.
This commit is contained in:
parent
8ce55ca50b
commit
df50320bf4
@ -158,6 +158,9 @@ fn create_output_image_element(document: &web_sys::Document) -> web_sys::HtmlIma
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
|
/// If the environment variable `WGPU_ADAPTER_NAME` is set, this function will attempt to
|
||||||
|
/// initialize the adapter with that name. If it is not set, it will attempt to initialize
|
||||||
|
/// the adapter which supports the required features.
|
||||||
pub(crate) async fn get_adapter_with_capabilities_or_from_env(
|
pub(crate) async fn get_adapter_with_capabilities_or_from_env(
|
||||||
instance: &wgpu::Instance,
|
instance: &wgpu::Instance,
|
||||||
required_features: &wgpu::Features,
|
required_features: &wgpu::Features,
|
||||||
|
Loading…
Reference in New Issue
Block a user