Skip to content

Commit 475c18b

Browse files
committed
Deploying to master from @ 90eb399d4344a73ed723a9a4ab0249fde7bfa3c7 🚀
1 parent 8bfdcc6 commit 475c18b

24 files changed

+257
-189
lines changed

‎doc/search-index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎doc/src/wgpu/lib.rs.html

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3671,6 +3671,32 @@
36713671
<span id="3669">3669</span>
36723672
<span id="3670">3670</span>
36733673
<span id="3671">3671</span>
3674+
<span id="3672">3672</span>
3675+
<span id="3673">3673</span>
3676+
<span id="3674">3674</span>
3677+
<span id="3675">3675</span>
3678+
<span id="3676">3676</span>
3679+
<span id="3677">3677</span>
3680+
<span id="3678">3678</span>
3681+
<span id="3679">3679</span>
3682+
<span id="3680">3680</span>
3683+
<span id="3681">3681</span>
3684+
<span id="3682">3682</span>
3685+
<span id="3683">3683</span>
3686+
<span id="3684">3684</span>
3687+
<span id="3685">3685</span>
3688+
<span id="3686">3686</span>
3689+
<span id="3687">3687</span>
3690+
<span id="3688">3688</span>
3691+
<span id="3689">3689</span>
3692+
<span id="3690">3690</span>
3693+
<span id="3691">3691</span>
3694+
<span id="3692">3692</span>
3695+
<span id="3693">3693</span>
3696+
<span id="3694">3694</span>
3697+
<span id="3695">3695</span>
3698+
<span id="3696">3696</span>
3699+
<span id="3697">3697</span>
36743700
</pre><pre class="rust"><code><span class="doccomment">//! A cross-platform graphics and compute library based on [WebGPU](https://gpuweb.github.io/gpuweb/).
36753701
//!
36763702
//! To start using the API, create an [`Instance`].
@@ -5589,12 +5615,25 @@
55895615
})
55905616
}
55915617

5592-
<span class="doccomment">/// Returns the inner hal Adapter using a callback. The hal adapter will be `None` if the
5593-
/// backend type argument does not match with this wgpu Adapter
5618+
<span class="doccomment">/// Apply a callback to this `Adapter`&#39;s underlying backend adapter.
5619+
///
5620+
/// If this `Adapter` is implemented by the backend API given by `A` (Vulkan,
5621+
/// Dx12, etc.), then apply `hal_adapter_callback` to `Some(&amp;adapter)`, where
5622+
/// `adapter` is the underlying backend adapter type, [`A::Adapter`].
5623+
///
5624+
/// If this `Adapter` uses a different backend, apply `hal_adapter_callback`
5625+
/// to `None`.
5626+
///
5627+
/// The adapter is locked for reading while `hal_adapter_callback` runs. If
5628+
/// the callback attempts to perform any `wgpu` operations that require
5629+
/// write access to the adapter, deadlock will occur. The locks are
5630+
/// automatically released when the callback returns.
55945631
///
55955632
/// # Safety
55965633
///
5597-
/// - The raw handle obtained from the hal Adapter must not be manually destroyed
5634+
/// - The raw handle passed to the callback must not be manually destroyed.
5635+
///
5636+
/// [`A::Adapter`]: hal::Api::Adapter
55985637
</span><span class="attribute">#[cfg(any(not(target_arch = <span class="string">&quot;wasm32&quot;</span>), feature = <span class="string">&quot;webgl&quot;</span>))]
55995638
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: wgc::hub::HalApi, F: FnOnce(<span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span>A::Adapter&gt;) -&gt; R, R&gt;(
56005639
<span class="kw-2">&amp;</span><span class="self">self</span>,
@@ -5884,12 +5923,25 @@
58845923
Context::device_stop_capture(<span class="kw-2">&amp;*</span><span class="self">self</span>.context, <span class="kw-2">&amp;</span><span class="self">self</span>.id)
58855924
}
58865925

5887-
<span class="doccomment">/// Returns the inner hal Device using a callback. The hal device will be `None` if the
5888-
/// backend type argument does not match with this wgpu Device
5926+
<span class="doccomment">/// Apply a callback to this `Device`&#39;s underlying backend device.
5927+
///
5928+
/// If this `Device` is implemented by the backend API given by `A` (Vulkan,
5929+
/// Dx12, etc.), then apply `hal_device_callback` to `Some(&amp;device)`, where
5930+
/// `device` is the underlying backend device type, [`A::Device`].
5931+
///
5932+
/// If this `Device` uses a different backend, apply `hal_device_callback`
5933+
/// to `None`.
5934+
///
5935+
/// The device is locked for reading while `hal_device_callback` runs. If
5936+
/// the callback attempts to perform any `wgpu` operations that require
5937+
/// write access to the device (destroying a buffer, say), deadlock will
5938+
/// occur. The locks are automatically released when the callback returns.
58895939
///
58905940
/// # Safety
58915941
///
5892-
/// - The raw handle obtained from the hal Device must not be manually destroyed
5942+
/// - The raw handle passed to the callback must not be manually destroyed.
5943+
///
5944+
/// [`A::Device`]: hal::Api::Device
58935945
</span><span class="attribute">#[cfg(any(not(target_arch = <span class="string">&quot;wasm32&quot;</span>), feature = <span class="string">&quot;emscripten&quot;</span>))]
58945946
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: wgc::hub::HalApi, F: FnOnce(<span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span>A::Device&gt;) -&gt; R, R&gt;(
58955947
<span class="kw-2">&amp;</span><span class="self">self</span>,

‎doc/wgpu/enum.Error.html

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

0 commit comments

Comments
 (0)