Skip to content

Commit 53d9eea

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@e73d055 🚀
1 parent 24cff3e commit 53d9eea

File tree

720 files changed

+822
-822
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

720 files changed

+822
-822
lines changed

doc/src/wgpu/lib.rs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<a href=#32 id=32 data-nosnippet>32</a>//!
3333
<a href=#33 id=33 data-nosnippet>33</a>
3434
<a href=#34 id=34 data-nosnippet>34</a></span><span class="attr">#![no_std]
35-
<a href=#35 id=35 data-nosnippet>35</a>#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
35+
<a href=#35 id=35 data-nosnippet>35</a>#![cfg_attr(docsrs, feature(doc_cfg))]
3636
<a href=#36 id=36 data-nosnippet>36</a>#![doc(html_logo_url = <span class="string">"https://raw.githubusercontent.com/gfx-rs/wgpu/trunk/logo.png"</span>)]
3737
<a href=#37 id=37 data-nosnippet>37</a>#![warn(
3838
<a href=#38 id=38 data-nosnippet>38</a> clippy::alloc_instead_of_core,

doc/src/wgpu_core/lib.rs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<a href=#17 id=17 data-nosnippet>17</a> ),
1818
<a href=#18 id=18 data-nosnippet>18</a> allow(unused, clippy::let_and_return)
1919
<a href=#19 id=19 data-nosnippet>19</a>)]
20-
<a href=#20 id=20 data-nosnippet>20</a>#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
20+
<a href=#20 id=20 data-nosnippet>20</a>#![cfg_attr(docsrs, feature(doc_cfg))]
2121
<a href=#21 id=21 data-nosnippet>21</a>#![allow(
2222
<a href=#22 id=22 data-nosnippet>22</a> <span class="comment">// It is much clearer to assert negative conditions with eq! false
2323
<a href=#23 id=23 data-nosnippet>23</a> </span>clippy::bool_assert_comparison,

doc/src/wgpu_hal/lib.rs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
<a href=#203 id=203 data-nosnippet>203</a>//! [wiki-debug]: https://github.com/gfx-rs/wgpu/wiki/Debugging-wgpu-Applications
204204
<a href=#204 id=204 data-nosnippet>204</a>
205205
<a href=#205 id=205 data-nosnippet>205</a></span><span class="attr">#![no_std]
206-
<a href=#206 id=206 data-nosnippet>206</a>#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
206+
<a href=#206 id=206 data-nosnippet>206</a>#![cfg_attr(docsrs, feature(doc_cfg))]
207207
<a href=#207 id=207 data-nosnippet>207</a>#![allow(
208208
<a href=#208 id=208 data-nosnippet>208</a> <span class="comment">// this happens on the GL backend, where it is both thread safe and non-thread safe in the same code.
209209
<a href=#209 id=209 data-nosnippet>209</a> </span>clippy::arc_with_non_send_sync,

doc/src/wgpu_types/lib.rs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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="Source of the Rust file `wgpu-types/src/lib.rs`."><title>lib.rs - source</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-1a91846b.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="wgpu_types" data-themes="" data-resource-suffix="" data-rustdoc-version="1.88.0 (6b00bc388 2025-06-23)" data-channel="1.88.0" data-search-js="search-f7877310.js" data-settings-js="settings-5514c975.js" ><script src="../../static.files/storage-4e99c027.js"></script><script defer src="../../static.files/src-script-63605ae7.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-7ef8a74a.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title"><h2>Files</h2></div></nav><div class="sidebar-resizer"></div><main><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1><div class="sub-heading">wgpu_types/</div>lib.rs</h1><rustdoc-toolbar></rustdoc-toolbar></div><div class="example-wrap digits-4"><pre class="rust"><code><a href=#1 id=1 data-nosnippet>1</a><span class="doccomment">//! This library describes the API surface of WebGPU that is agnostic of the backend.
22
<a href=#2 id=2 data-nosnippet>2</a>//! This API is used for targeting both Web and Native.
33
<a href=#3 id=3 data-nosnippet>3</a>
4-
<a href=#4 id=4 data-nosnippet>4</a></span><span class="attr">#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
4+
<a href=#4 id=4 data-nosnippet>4</a></span><span class="attr">#![cfg_attr(docsrs, feature(doc_cfg))]
55
<a href=#5 id=5 data-nosnippet>5</a>#![allow(
66
<a href=#6 id=6 data-nosnippet>6</a> <span class="comment">// We don't use syntax sugar where it's not necessary.
77
<a href=#7 id=7 data-nosnippet>7</a> </span>clippy::match_like_matches_macro,

doc/type.impl/core/option/enum.Option.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/wgpu/api/adapter/struct.Adapter.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ <h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
2828
&amp;self,
2929
hal_device: <a class="struct" href="../../../wgpu_hal/struct.OpenDevice.html" title="struct wgpu_hal::OpenDevice">OpenDevice</a>&lt;A&gt;,
3030
desc: &amp;<a class="type" href="../../type.DeviceDescriptor.html" title="type wgpu::DeviceDescriptor">DeviceDescriptor</a>&lt;'_&gt;,
31-
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(<a class="struct" href="../../struct.Device.html" title="struct wgpu::Device">Device</a>, <a class="struct" href="../../struct.Queue.html" title="struct wgpu::Queue">Queue</a>), <a class="struct" href="../../struct.RequestDeviceError.html" title="struct wgpu::RequestDeviceError">RequestDeviceError</a>&gt;</h4></section><span class="item-info"><div class="stab portability">Available on <strong><code>wgpu_core</code></strong> only.</div></span></summary><div class="docblock"><p>Create a wgpu <a href="../../struct.Device.html" title="struct wgpu::Device"><code>Device</code></a> and <a href="../../struct.Queue.html" title="struct wgpu::Queue"><code>Queue</code></a> from a wgpu-hal <a href="../../../wgpu_hal/struct.OpenDevice.html" title="struct wgpu_hal::OpenDevice"><code>hal::OpenDevice</code></a>.</p>
31+
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(<a class="struct" href="../../struct.Device.html" title="struct wgpu::Device">Device</a>, <a class="struct" href="../../struct.Queue.html" title="struct wgpu::Queue">Queue</a>), <a class="struct" href="../../struct.RequestDeviceError.html" title="struct wgpu::RequestDeviceError">RequestDeviceError</a>&gt;</h4></section></summary><div class="docblock"><p>Create a wgpu <a href="../../struct.Device.html" title="struct wgpu::Device"><code>Device</code></a> and <a href="../../struct.Queue.html" title="struct wgpu::Queue"><code>Queue</code></a> from a wgpu-hal <a href="../../../wgpu_hal/struct.OpenDevice.html" title="struct wgpu_hal::OpenDevice"><code>hal::OpenDevice</code></a>.</p>
3232
<h5 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h5>
3333
<ul>
3434
<li><code>hal_device</code> must be created from this adapter internal handle.</li>
3535
<li><code>desc.features</code> must be a subset of <code>hal_device</code>’s supported features.</li>
3636
</ul>
3737
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_hal" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#130-136">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.as_hal" class="fn">as_hal</a>&lt;A: <a class="trait" href="../../../wgpu_hal/trait.Api.html" title="trait wgpu_hal::Api">Api</a>&gt;(
3838
&amp;self,
39-
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;impl <a class="trait" href="https://doc.rust-lang.org/1.88.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = A::<a class="associatedtype" href="../../../wgpu_hal/trait.Api.html#associatedtype.Adapter" title="type wgpu_hal::Api::Adapter">Adapter</a>&gt; + <a class="trait" href="../../trait.WasmNotSendSync.html" title="trait wgpu::WasmNotSendSync">WasmNotSendSync</a>&gt;</h4></section><span class="item-info"><div class="stab portability">Available on <strong><code>wgpu_core</code></strong> only.</div></span></summary><div class="docblock"><p>Get the <a href="../../../wgpu_hal/index.html" title="mod wgpu_hal"><code>wgpu_hal</code></a> adapter from this <code>Adapter</code>.</p>
39+
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;impl <a class="trait" href="https://doc.rust-lang.org/1.88.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = A::<a class="associatedtype" href="../../../wgpu_hal/trait.Api.html#associatedtype.Adapter" title="type wgpu_hal::Api::Adapter">Adapter</a>&gt; + <a class="trait" href="../../trait.WasmNotSendSync.html" title="trait wgpu::WasmNotSendSync">WasmNotSendSync</a>&gt;</h4></section></summary><div class="docblock"><p>Get the <a href="../../../wgpu_hal/index.html" title="mod wgpu_hal"><code>wgpu_hal</code></a> adapter from this <code>Adapter</code>.</p>
4040
<p>Find the Api struct corresponding to the active backend in <a href="../../../wgpu_hal/api/index.html" title="mod wgpu_hal::api"><code>wgpu_hal::api</code></a>,
4141
and pass that struct to the to the <code>A</code> type parameter.</p>
4242
<p>Returns a guard that dereferences to the type of the hal backend
@@ -62,8 +62,8 @@ <h5 id="safety-1"><a class="doc-anchor" href="#safety-1">§</a>Safety</h5>
6262
The guard and handle may be dropped at any time however.</li>
6363
<li>All the safety requirements of wgpu-hal must be upheld.</li>
6464
</ul>
65-
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_custom" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#140-142">Source</a><h4 class="code-header">pub fn <a href="#method.as_custom" class="fn">as_custom</a>&lt;T: <a class="trait" href="../../dispatch/trait.AdapterInterface.html" title="trait wgpu::dispatch::AdapterInterface">AdapterInterface</a>&gt;(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.reference.html">&amp;T</a>&gt;</h4></section><span class="item-info"><div class="stab portability">Available on <strong><code>custom</code></strong> only.</div></span></summary><div class="docblock"><p>Returns custom implementation of adapter (if custom backend and is internally T)</p>
66-
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_custom" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#146-150">Source</a><h4 class="code-header">pub fn <a href="#method.from_custom" class="fn">from_custom</a>&lt;T: <a class="trait" href="../../dispatch/trait.AdapterInterface.html" title="trait wgpu::dispatch::AdapterInterface">AdapterInterface</a>&gt;(adapter: T) -&gt; Self</h4></section><span class="item-info"><div class="stab portability">Available on <strong><code>custom</code></strong> only.</div></span></summary><div class="docblock"><p>Creates Adapter from custom implementation</p>
65+
</div></details><details class="toggle method-toggle" open><summary><section id="method.as_custom" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#140-142">Source</a><h4 class="code-header">pub fn <a href="#method.as_custom" class="fn">as_custom</a>&lt;T: <a class="trait" href="../../dispatch/trait.AdapterInterface.html" title="trait wgpu::dispatch::AdapterInterface">AdapterInterface</a>&gt;(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.reference.html">&amp;T</a>&gt;</h4></section></summary><div class="docblock"><p>Returns custom implementation of adapter (if custom backend and is internally T)</p>
66+
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_custom" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#146-150">Source</a><h4 class="code-header">pub fn <a href="#method.from_custom" class="fn">from_custom</a>&lt;T: <a class="trait" href="../../dispatch/trait.AdapterInterface.html" title="trait wgpu::dispatch::AdapterInterface">AdapterInterface</a>&gt;(adapter: T) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates Adapter from custom implementation</p>
6767
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_surface_supported" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#153-155">Source</a><h4 class="code-header">pub fn <a href="#method.is_surface_supported" class="fn">is_surface_supported</a>(&amp;self, surface: &amp;<a class="struct" href="../../struct.Surface.html" title="struct wgpu::Surface">Surface</a>&lt;'_&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns whether this adapter may present to the passed surface.</p>
6868
</div></details><details class="toggle method-toggle" open><summary><section id="method.features" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#158-160">Source</a><h4 class="code-header">pub fn <a href="#method.features" class="fn">features</a>(&amp;self) -&gt; <a class="struct" href="../../struct.Features.html" title="struct wgpu::Features">Features</a></h4></section></summary><div class="docblock"><p>The features which can be used to create devices on this adapter.</p>
6969
</div></details><details class="toggle method-toggle" open><summary><section id="method.limits" class="method"><a class="src rightside" href="../../../src/wgpu/api/adapter.rs.html#163-165">Source</a><h4 class="code-header">pub fn <a href="#method.limits" class="fn">limits</a>(&amp;self) -&gt; <a class="struct" href="../../struct.Limits.html" title="struct wgpu::Limits">Limits</a></h4></section></summary><div class="docblock"><p>The best limits which can be used to create devices on this adapter.</p>

0 commit comments

Comments
 (0)