Skip to content

Commit a3176f1

Browse files
committed
Deploying to master from @ 237289594420f498c6fdb39f3a47d12f3e52397b 🚀
1 parent 560a3f2 commit a3176f1

34 files changed

+307
-203
lines changed

‎doc/src/wgpu/backend/direct.rs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3422,7 +3422,7 @@
34223422
<span class="kw">match </span><span class="macro">wgc::gfx_select!</span>(adapter =&gt; global.surface_get_supported_formats(surface.id, <span class="kw-2">*</span>adapter))
34233423
{
34243424
<span class="prelude-val">Ok</span>(formats) =&gt; formats,
3425-
<span class="prelude-val">Err</span>(wgc::instance::GetSurfaceSupportError::UnsupportedQueueFamily) =&gt; <span class="macro">vec!</span>[],
3425+
<span class="prelude-val">Err</span>(wgc::instance::GetSurfaceSupportError::Unsupported) =&gt; <span class="macro">vec!</span>[],
34263426
<span class="prelude-val">Err</span>(err) =&gt; <span class="self">self</span>.handle_error_fatal(err, <span class="string">&quot;Surface::get_supported_formats&quot;</span>),
34273427
}
34283428
}
@@ -3436,7 +3436,7 @@
34363436
<span class="kw">match </span><span class="macro">wgc::gfx_select!</span>(adapter =&gt; global.surface_get_supported_present_modes(surface.id, <span class="kw-2">*</span>adapter))
34373437
{
34383438
<span class="prelude-val">Ok</span>(modes) =&gt; modes,
3439-
<span class="prelude-val">Err</span>(wgc::instance::GetSurfaceSupportError::UnsupportedQueueFamily) =&gt; <span class="macro">vec!</span>[],
3439+
<span class="prelude-val">Err</span>(wgc::instance::GetSurfaceSupportError::Unsupported) =&gt; <span class="macro">vec!</span>[],
34403440
<span class="prelude-val">Err</span>(err) =&gt; <span class="self">self</span>.handle_error_fatal(err, <span class="string">&quot;Surface::get_supported_present_modes&quot;</span>),
34413441
}
34423442
}
@@ -3450,7 +3450,7 @@
34503450
<span class="kw">match </span><span class="macro">wgc::gfx_select!</span>(adapter =&gt; global.surface_get_supported_alpha_modes(surface.id, <span class="kw-2">*</span>adapter))
34513451
{
34523452
<span class="prelude-val">Ok</span>(modes) =&gt; modes,
3453-
<span class="prelude-val">Err</span>(wgc::instance::GetSurfaceSupportError::UnsupportedQueueFamily) =&gt; {
3453+
<span class="prelude-val">Err</span>(wgc::instance::GetSurfaceSupportError::Unsupported) =&gt; {
34543454
<span class="macro">vec!</span>[CompositeAlphaMode::Opaque]
34553455
}
34563456
<span class="prelude-val">Err</span>(err) =&gt; <span class="self">self</span>.handle_error_fatal(err, <span class="string">&quot;Surface::get_supported_alpha_modes&quot;</span>),

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,6 +3776,9 @@
37763776
<span id="3774">3774</span>
37773777
<span id="3775">3775</span>
37783778
<span id="3776">3776</span>
3779+
<span id="3777">3777</span>
3780+
<span id="3778">3778</span>
3781+
<span id="3779">3779</span>
37793782
</pre><pre class="rust"><code><span class="doccomment">//! A cross-platform graphics and compute library based on [WebGPU](https://gpuweb.github.io/gpuweb/).
37803783
//!
37813784
//! To start using the API, create an [`Instance`].
@@ -5591,6 +5594,9 @@
55915594

55925595
<span class="doccomment">/// Creates a surface from a raw window handle.
55935596
///
5597+
/// If the specified display and window handle are not supported by any of the backends, then the surface
5598+
/// will not be supported by any adapters.
5599+
///
55945600
/// # Safety
55955601
///
55965602
/// - Raw Window Handle must be a valid object to create a surface upon and

‎doc/src/wgpu_hal/empty.rs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,16 @@
393393
<span id="393">393</span>
394394
<span id="394">394</span>
395395
<span id="395">395</span>
396+
<span id="396">396</span>
396397
</pre><pre class="rust"><code><span class="attribute">#![allow(unused_variables)]
397398

398399
</span><span class="kw">use </span>std::ops::Range;
399400

400401
<span class="attribute">#[derive(Clone)]
401402
</span><span class="kw">pub struct </span>Api;
402403
<span class="kw">pub struct </span>Context;
403-
<span class="kw">pub struct </span>Encoder;
404+
<span class="attribute">#[derive(Debug)]
405+
</span><span class="kw">pub struct </span>Encoder;
404406
<span class="attribute">#[derive(Debug)]
405407
</span><span class="kw">pub struct </span>Resource;
406408

‎doc/src/wgpu_hal/gles/mod.rs.html

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,24 @@
767767
<span id="767">767</span>
768768
<span id="768">768</span>
769769
<span id="769">769</span>
770+
<span id="770">770</span>
771+
<span id="771">771</span>
772+
<span id="772">772</span>
773+
<span id="773">773</span>
774+
<span id="774">774</span>
775+
<span id="775">775</span>
776+
<span id="776">776</span>
777+
<span id="777">777</span>
778+
<span id="778">778</span>
779+
<span id="779">779</span>
780+
<span id="780">780</span>
781+
<span id="781">781</span>
782+
<span id="782">782</span>
783+
<span id="783">783</span>
784+
<span id="784">784</span>
785+
<span id="785">785</span>
786+
<span id="786">786</span>
787+
<span id="787">787</span>
770788
</pre><pre class="rust"><code><span class="doccomment">/*!
771789
# OpenGL ES3 API (aka GLES3).
772790

@@ -851,7 +869,7 @@
851869

852870
<span class="kw">use </span>glow::HasContext;
853871

854-
<span class="kw">use </span>std::{ops::Range, sync::Arc};
872+
<span class="kw">use </span>std::{fmt, ops::Range, sync::Arc};
855873

856874
<span class="attribute">#[derive(Clone)]
857875
</span><span class="kw">pub struct </span>Api;
@@ -1527,6 +1545,16 @@
15271545
queries: Vec&lt;glow::Query&gt;,
15281546
}
15291547

1548+
<span class="kw">impl </span>fmt::Debug <span class="kw">for </span>CommandBuffer {
1549+
<span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">&#39;_</span>&gt;) -&gt; fmt::Result {
1550+
<span class="kw">let </span><span class="kw-2">mut </span>builder = f.debug_struct(<span class="string">&quot;CommandBuffer&quot;</span>);
1551+
<span class="kw">if let </span><span class="prelude-val">Some</span>(<span class="kw-2">ref </span>label) = <span class="self">self</span>.label {
1552+
builder.field(<span class="string">&quot;label&quot;</span>, label);
1553+
}
1554+
builder.finish()
1555+
}
1556+
}
1557+
15301558
<span class="comment">//TODO: we would have something like `Arc&lt;typed_arena::Arena&gt;`
15311559
// here and in the command buffers. So that everything grows
15321560
// inside the encoder and stays there until `reset_all`.
@@ -1536,5 +1564,13 @@
15361564
state: command::State,
15371565
private_caps: PrivateCapabilities,
15381566
}
1567+
1568+
<span class="kw">impl </span>fmt::Debug <span class="kw">for </span>CommandEncoder {
1569+
<span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">&#39;_</span>&gt;) -&gt; fmt::Result {
1570+
f.debug_struct(<span class="string">&quot;CommandEncoder&quot;</span>)
1571+
.field(<span class="string">&quot;cmd_buffer&quot;</span>, <span class="kw-2">&amp;</span><span class="self">self</span>.cmd_buffer)
1572+
.finish()
1573+
}
1574+
}
15391575
</code></pre></div>
15401576
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="wgpu_hal" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (01af5040f 2022-10-04)" ></div></body></html>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@
13671367

13681368
<span class="kw">type </span>Queue: Queue&lt;<span class="self">Self</span>&gt;;
13691369
<span class="kw">type </span>CommandEncoder: CommandEncoder&lt;<span class="self">Self</span>&gt;;
1370-
<span class="kw">type </span>CommandBuffer: Send + Sync;
1370+
<span class="kw">type </span>CommandBuffer: Send + Sync + fmt::Debug;
13711371

13721372
<span class="kw">type </span>Buffer: fmt::Debug + Send + Sync + <span class="lifetime">&#39;static</span>;
13731373
<span class="kw">type </span>Texture: fmt::Debug + Send + Sync + <span class="lifetime">&#39;static</span>;
@@ -1561,7 +1561,7 @@
15611561
/// Serves as a parent for all the encoded command buffers.
15621562
/// Works in bursts of action: one or more command buffers are recorded,
15631563
/// then submitted to a queue, and then it needs to be `reset_all()`.
1564-
</span><span class="kw">pub trait </span>CommandEncoder&lt;A: Api&gt;: Send + Sync {
1564+
</span><span class="kw">pub trait </span>CommandEncoder&lt;A: Api&gt;: Send + Sync + fmt::Debug {
15651565
<span class="doccomment">/// Begin encoding a new command buffer.
15661566
</span><span class="kw">unsafe fn </span>begin_encoding(<span class="kw-2">&amp;mut </span><span class="self">self</span>, label: Label) -&gt; <span class="prelude-ty">Result</span>&lt;(), DeviceError&gt;;
15671567
<span class="doccomment">/// Discard currently recorded list, if any.

0 commit comments

Comments
 (0)