From df50320bf43d074d641765bc0717306bcf52038e Mon Sep 17 00:00:00 2001 From: Arjo Chakravarty Date: Sun, 17 Nov 2024 11:36:06 +0800 Subject: [PATCH] Docstring. --- examples/src/utils.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/src/utils.rs b/examples/src/utils.rs index fa7cc35d8..bbc727582 100644 --- a/examples/src/utils.rs +++ b/examples/src/utils.rs @@ -158,6 +158,9 @@ fn create_output_image_element(document: &web_sys::Document) -> web_sys::HtmlIma } #[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( instance: &wgpu::Instance, required_features: &wgpu::Features,