Skip to content

Commit 68f9b40

Browse files
Deploying to master from @ gfx-rs/wgpu@a8214b6 🚀
1 parent 2044015 commit 68f9b40

26 files changed

+91
-87
lines changed

doc/src/wgpu_core/instance.rs.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@
972972
<a href="#971" id="971">971</a>
973973
<a href="#972" id="972">972</a>
974974
<a href="#973" id="973">973</a>
975+
<a href="#974" id="974">974</a>
976+
<a href="#975" id="975">975</a>
975977
</pre></div><pre class="rust"><code><span class="kw">use </span>std::sync::Arc;
976978
<span class="kw">use </span>std::{borrow::Cow, collections::HashMap};
977979

@@ -1267,12 +1269,14 @@
12671269
<span class="macro">api_log!</span>(<span class="string">"Instance::enumerate_adapters"</span>);
12681270

12691271
<span class="kw">let </span><span class="kw-2">mut </span>adapters = Vec::new();
1270-
<span class="kw">for </span>(<span class="kw">_</span>, instance) <span class="kw">in </span><span class="self">self
1272+
<span class="kw">for </span>(_backend, instance) <span class="kw">in </span><span class="self">self
12711273
</span>.instance_per_backend
12721274
.iter()
12731275
.filter(|(backend, <span class="kw">_</span>)| backends.contains(Backends::from(<span class="kw-2">*</span>backend)))
12741276
{
1275-
<span class="macro">profiling::scope!</span>(<span class="string">"enumerating"</span>, <span class="kw-2">&amp;*</span><span class="macro">format!</span>(<span class="string">"{:?}"</span>, backend));
1277+
<span class="comment">// NOTE: We might be using `profiling` without any features. The empty backend of this
1278+
// macro emits no code, so unused code linting changes depending on the backend.
1279+
</span><span class="macro">profiling::scope!</span>(<span class="string">"enumerating"</span>, <span class="kw-2">&amp;*</span><span class="macro">format!</span>(<span class="string">"{:?}"</span>, _backend));
12761280

12771281
<span class="kw">let </span>hal_adapters = <span class="kw">unsafe </span>{ instance.enumerate_adapters(<span class="prelude-val">None</span>) };
12781282
<span class="kw">for </span>raw <span class="kw">in </span>hal_adapters {

doc/wgpu_core/device/enum.DeviceError.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

doc/wgpu_core/global/struct.Global.html

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

doc/wgpu_core/instance/enum.CreateSurfaceError.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

doc/wgpu_core/instance/enum.GetSurfaceSupportError.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

doc/wgpu_core/instance/enum.RequestAdapterError.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

doc/wgpu_core/instance/enum.RequestDeviceError.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

doc/wgpu_core/instance/fn.parse_backends_from_comma_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Generates a set of backends from a comma separated list of case-insensitive backend names."><title>parse_backends_from_comma_list in wgpu_core::instance - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-804b98a1284a310a.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="wgpu_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0-nightly (445177724 2023-12-16)" data-channel="nightly" data-search-js="search-874d56868bf05518.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../wgpu_core/index.html">wgpu_core</a><span class="version">22.0.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In wgpu_core::instance</a></h2></div></nav><div class="sidebar-resizer"></div>
2-
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../wgpu_core/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">wgpu_core</a>::<wbr><a href="index.html">instance</a>::<wbr><a class="fn" href="#">parse_backends_from_comma_list</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/wgpu_core/instance.rs.html#952-973">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn parse_backends_from_comma_list(string: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../../wgpu_types/struct.Backends.html" title="struct wgpu_types::Backends">Backends</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Generates a set of backends from a comma separated list of case-insensitive backend names.</p>
2+
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../wgpu_core/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">wgpu_core</a>::<wbr><a href="index.html">instance</a>::<wbr><a class="fn" href="#">parse_backends_from_comma_list</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/wgpu_core/instance.rs.html#954-975">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn parse_backends_from_comma_list(string: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../../wgpu_types/struct.Backends.html" title="struct wgpu_types::Backends">Backends</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Generates a set of backends from a comma separated list of case-insensitive backend names.</p>
33
<p>Whitespace is stripped, so both ‘gl, dx12’ and ‘gl,dx12’ are valid.</p>
44
<p>Always returns WEBGPU on wasm over webgpu.</p>
55
<p>Names:</p>

doc/wgpu_core/instance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `instance` mod in crate `wgpu_core`."><title>wgpu_core::instance - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-804b98a1284a310a.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="wgpu_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0-nightly (445177724 2023-12-16)" data-channel="nightly" data-search-js="search-874d56868bf05518.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../wgpu_core/index.html">wgpu_core</a><span class="version">22.0.0</span></h2></div><h2 class="location"><a href="#">Module instance</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Aliases</a></li></ul></section><h2><a href="../index.html">In crate wgpu_core</a></h2></div></nav><div class="sidebar-resizer"></div>
2-
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../wgpu_core/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">wgpu_core</a>::<wbr><a class="mod" href="#">instance</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/wgpu_core/instance.rs.html#1-973">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Adapter.html" title="struct wgpu_core::instance::Adapter">Adapter</a></div></li><li><div class="item-name"><a class="struct" href="struct.FailedLimit.html" title="struct wgpu_core::instance::FailedLimit">FailedLimit</a></div></li><li><div class="item-name"><a class="struct" href="struct.Instance.html" title="struct wgpu_core::instance::Instance">Instance</a></div></li><li><div class="item-name"><a class="struct" href="struct.Surface.html" title="struct wgpu_core::instance::Surface">Surface</a></div></li></ul><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.CreateSurfaceError.html" title="enum wgpu_core::instance::CreateSurfaceError">CreateSurfaceError</a></div></li><li><div class="item-name"><a class="enum" href="enum.GetSurfaceSupportError.html" title="enum wgpu_core::instance::GetSurfaceSupportError">GetSurfaceSupportError</a></div></li><li><div class="item-name"><a class="enum" href="enum.RequestAdapterError.html" title="enum wgpu_core::instance::RequestAdapterError">RequestAdapterError</a></div></li><li><div class="item-name"><a class="enum" href="enum.RequestDeviceError.html" title="enum wgpu_core::instance::RequestDeviceError">RequestDeviceError</a></div><div class="desc docblock-short">Error when requesting a device from the adaptor</div></li></ul><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.parse_backends_from_comma_list.html" title="fn wgpu_core::instance::parse_backends_from_comma_list">parse_backends_from_comma_list</a></div><div class="desc docblock-short">Generates a set of backends from a comma separated list of case-insensitive backend names.</div></li></ul><h2 id="types" class="section-header"><a href="#types">Type Aliases</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.RequestAdapterOptions.html" title="type wgpu_core::instance::RequestAdapterOptions">RequestAdapterOptions</a></div></li></ul></section></div></main></body></html>
2+
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../wgpu_core/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">wgpu_core</a>::<wbr><a class="mod" href="#">instance</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/wgpu_core/instance.rs.html#1-975">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Adapter.html" title="struct wgpu_core::instance::Adapter">Adapter</a></div></li><li><div class="item-name"><a class="struct" href="struct.FailedLimit.html" title="struct wgpu_core::instance::FailedLimit">FailedLimit</a></div></li><li><div class="item-name"><a class="struct" href="struct.Instance.html" title="struct wgpu_core::instance::Instance">Instance</a></div></li><li><div class="item-name"><a class="struct" href="struct.Surface.html" title="struct wgpu_core::instance::Surface">Surface</a></div></li></ul><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.CreateSurfaceError.html" title="enum wgpu_core::instance::CreateSurfaceError">CreateSurfaceError</a></div></li><li><div class="item-name"><a class="enum" href="enum.GetSurfaceSupportError.html" title="enum wgpu_core::instance::GetSurfaceSupportError">GetSurfaceSupportError</a></div></li><li><div class="item-name"><a class="enum" href="enum.RequestAdapterError.html" title="enum wgpu_core::instance::RequestAdapterError">RequestAdapterError</a></div></li><li><div class="item-name"><a class="enum" href="enum.RequestDeviceError.html" title="enum wgpu_core::instance::RequestDeviceError">RequestDeviceError</a></div><div class="desc docblock-short">Error when requesting a device from the adaptor</div></li></ul><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.parse_backends_from_comma_list.html" title="fn wgpu_core::instance::parse_backends_from_comma_list">parse_backends_from_comma_list</a></div><div class="desc docblock-short">Generates a set of backends from a comma separated list of case-insensitive backend names.</div></li></ul><h2 id="types" class="section-header"><a href="#types">Type Aliases</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.RequestAdapterOptions.html" title="type wgpu_core::instance::RequestAdapterOptions">RequestAdapterOptions</a></div></li></ul></section></div></main></body></html>

0 commit comments

Comments
 (0)