Skip to content

Commit 3b42db6

Browse files
Deploying to master from @ gfx-rs/wgpu@49b773f 🚀
1 parent 01032a2 commit 3b42db6

File tree

442 files changed

+2950
-2156
lines changed

Some content is hidden

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

442 files changed

+2950
-2156
lines changed

doc/search-index.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/search.desc/wgpu/wgpu-desc-0-.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/search.desc/wgpu/wgpu-desc-1-.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/search.desc/wgpu_hal/wgpu_hal-desc-0-.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/search.desc/wgpu_types/wgpu_types-desc-0-.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-files.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/src/wgpu/api/adapter.rs.html

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,16 @@
198198
<a href="#197" id="197">197</a>
199199
<a href="#198" id="198">198</a>
200200
<a href="#199" id="199">199</a>
201-
<a href="#200" id="200">200</a></pre></div><pre class="rust"><code><span class="kw">use </span>core::future::Future;
201+
<a href="#200" id="200">200</a>
202+
<a href="#201" id="201">201</a>
203+
<a href="#202" id="202">202</a>
204+
<a href="#203" id="203">203</a>
205+
<a href="#204" id="204">204</a>
206+
<a href="#205" id="205">205</a>
207+
<a href="#206" id="206">206</a>
208+
<a href="#207" id="207">207</a>
209+
<a href="#208" id="208">208</a>
210+
<a href="#209" id="209">209</a></pre></div><pre class="rust"><code><span class="kw">use </span>core::future::Future;
202211
<span class="attr">#[cfg(wgpu_core)]
203212
</span><span class="kw">use </span>core::ops::Deref;
204213

@@ -266,14 +275,14 @@
266275
}
267276
}
268277

269-
<span class="doccomment">/// Create a wgpu [`Device`] and [`Queue`] from a wgpu-hal `OpenDevice`
278+
<span class="doccomment">/// Create a wgpu [`Device`] and [`Queue`] from a wgpu-hal [`hal::OpenDevice`].
270279
///
271280
/// # Safety
272281
///
273282
/// - `hal_device` must be created from this adapter internal handle.
274-
/// - `desc.features` must be a subset of `hal_device` features.
283+
/// - `desc.features` must be a subset of `hal_device`'s supported features.
275284
</span><span class="attr">#[cfg(wgpu_core)]
276-
</span><span class="kw">pub unsafe fn </span>create_device_from_hal&lt;A: wgc::hal_api::HalApi&gt;(
285+
</span><span class="kw">pub unsafe fn </span>create_device_from_hal&lt;A: hal::Api&gt;(
277286
<span class="kw-2">&amp;</span><span class="self">self</span>,
278287
hal_device: hal::OpenDevice&lt;A&gt;,
279288
desc: <span class="kw-2">&amp;</span>DeviceDescriptor&lt;<span class="lifetime">'_</span>&gt;,
@@ -303,6 +312,15 @@
303312
/// Returns a guard that dereferences to the type of the hal backend
304313
/// which implements [`A::Adapter`].
305314
///
315+
/// # Types
316+
///
317+
/// The returned type depends on the backend:
318+
///
319+
</span><span class="attr">#[doc = <span class="macro">crate::hal_type_vulkan!</span>(<span class="string">"Adapter"</span>)]
320+
#[doc = <span class="macro">crate::hal_type_metal!</span>(<span class="string">"Adapter"</span>)]
321+
#[doc = <span class="macro">crate::hal_type_dx12!</span>(<span class="string">"Adapter"</span>)]
322+
#[doc = <span class="macro">crate::hal_type_gles!</span>(<span class="string">"Adapter"</span>)]
323+
</span><span class="doccomment">///
306324
/// # Errors
307325
///
308326
/// This method will return None if:
@@ -318,7 +336,7 @@
318336
///
319337
/// [`A::Adapter`]: hal::Api::Adapter
320338
</span><span class="attr">#[cfg(wgpu_core)]
321-
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: wgc::hal_api::HalApi&gt;(
339+
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: hal::Api&gt;(
322340
<span class="kw-2">&amp;</span><span class="self">self</span>,
323341
) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw">impl </span>Deref&lt;Target = A::Adapter&gt; + WasmNotSendSync&gt; {
324342
<span class="kw">let </span>adapter = <span class="self">self</span>.inner.as_core_opt()<span class="question-mark">?</span>;

doc/src/wgpu/api/blas.rs.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,16 @@
276276
<a href="#275" id="275">275</a>
277277
<a href="#276" id="276">276</a>
278278
<a href="#277" id="277">277</a>
279-
<a href="#278" id="278">278</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(wgpu_core)]
279+
<a href="#278" id="278">278</a>
280+
<a href="#279" id="279">279</a>
281+
<a href="#280" id="280">280</a>
282+
<a href="#281" id="281">281</a>
283+
<a href="#282" id="282">282</a>
284+
<a href="#283" id="283">283</a>
285+
<a href="#284" id="284">284</a>
286+
<a href="#285" id="285">285</a>
287+
<a href="#286" id="286">286</a>
288+
<a href="#287" id="287">287</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(wgpu_core)]
280289
</span><span class="kw">use </span>core::ops::Deref;
281290

282291
<span class="kw">use </span>alloc::{boxed::Box, vec::Vec};
@@ -440,6 +449,15 @@
440449
/// Returns a guard that dereferences to the type of the hal backend
441450
/// which implements [`A::AccelerationStructure`].
442451
///
452+
/// # Types
453+
///
454+
/// The returned type depends on the backend:
455+
///
456+
</span><span class="attr">#[doc = <span class="macro">crate::hal_type_vulkan!</span>(<span class="string">"AccelerationStructure"</span>)]
457+
#[doc = <span class="macro">crate::hal_type_metal!</span>(<span class="string">"AccelerationStructure"</span>)]
458+
#[doc = <span class="macro">crate::hal_type_dx12!</span>(<span class="string">"AccelerationStructure"</span>)]
459+
#[doc = <span class="macro">crate::hal_type_gles!</span>(<span class="string">"AccelerationStructure"</span>)]
460+
</span><span class="doccomment">///
443461
/// # Deadlocks
444462
///
445463
/// - The returned guard holds a read-lock on a device-local "destruction"
@@ -461,7 +479,7 @@
461479
///
462480
/// [`A::AccelerationStructure`]: hal::Api::AccelerationStructure
463481
</span><span class="attr">#[cfg(wgpu_core)]
464-
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: wgc::hal_api::HalApi&gt;(
482+
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: hal::Api&gt;(
465483
<span class="kw-2">&amp;mut </span><span class="self">self</span>,
466484
) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw">impl </span>Deref&lt;Target = A::AccelerationStructure&gt; + WasmNotSendSync&gt; {
467485
<span class="kw">let </span>blas = <span class="self">self</span>.inner.as_core_opt()<span class="question-mark">?</span>;

doc/src/wgpu/api/buffer.rs.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,16 @@
914914
<a href="#913" id="913">913</a>
915915
<a href="#914" id="914">914</a>
916916
<a href="#915" id="915">915</a>
917-
<a href="#916" id="916">916</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{boxed::Box, sync::Arc, vec::Vec};
917+
<a href="#916" id="916">916</a>
918+
<a href="#917" id="917">917</a>
919+
<a href="#918" id="918">918</a>
920+
<a href="#919" id="919">919</a>
921+
<a href="#920" id="920">920</a>
922+
<a href="#921" id="921">921</a>
923+
<a href="#922" id="922">922</a>
924+
<a href="#923" id="923">923</a>
925+
<a href="#924" id="924">924</a>
926+
<a href="#925" id="925">925</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{boxed::Box, sync::Arc, vec::Vec};
918927
<span class="kw">use </span>core::{
919928
error, fmt,
920929
ops::{Bound, Deref, DerefMut, Range, RangeBounds},
@@ -1124,6 +1133,15 @@
11241133
/// Returns a guard that dereferences to the type of the hal backend
11251134
/// which implements [`A::Buffer`].
11261135
///
1136+
/// # Types
1137+
///
1138+
/// The returned type depends on the backend:
1139+
///
1140+
</span><span class="attr">#[doc = <span class="macro">crate::hal_type_vulkan!</span>(<span class="string">"Buffer"</span>)]
1141+
#[doc = <span class="macro">crate::hal_type_metal!</span>(<span class="string">"Buffer"</span>)]
1142+
#[doc = <span class="macro">crate::hal_type_dx12!</span>(<span class="string">"Buffer"</span>)]
1143+
#[doc = <span class="macro">crate::hal_type_gles!</span>(<span class="string">"Buffer"</span>)]
1144+
</span><span class="doccomment">///
11271145
/// # Deadlocks
11281146
///
11291147
/// - The returned guard holds a read-lock on a device-local "destruction"
@@ -1146,7 +1164,7 @@
11461164
///
11471165
/// [`A::Buffer`]: hal::Api::Buffer
11481166
</span><span class="attr">#[cfg(wgpu_core)]
1149-
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: wgc::hal_api::HalApi&gt;(
1167+
</span><span class="kw">pub unsafe fn </span>as_hal&lt;A: hal::Api&gt;(
11501168
<span class="kw-2">&amp;</span><span class="self">self</span>,
11511169
) -&gt; <span class="prelude-ty">Option</span>&lt;<span class="kw">impl </span>Deref&lt;Target = A::Buffer&gt; + WasmNotSendSync&gt; {
11521170
<span class="kw">let </span>buffer = <span class="self">self</span>.inner.as_core_opt()<span class="question-mark">?</span>;

0 commit comments

Comments
 (0)