Skip to content

Commit 575c332

Browse files
committed
Deploying to master from @ b79c455144c961c053a35e5040dfa3831e1ef2e6 πŸš€
1 parent 560a3f2 commit 575c332

File tree

8 files changed

+67
-11
lines changed

8 files changed

+67
-11
lines changed

β€Ždoc/src/wgpu_hal/empty.rs.html

+3-1
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

+37-1
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

+2-2
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.

β€Ždoc/src/wgpu_hal/vulkan/mod.rs.html

+20-2
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,15 @@
671671
<span id="671">671</span>
672672
<span id="672">672</span>
673673
<span id="673">673</span>
674+
<span id="674">674</span>
675+
<span id="675">675</span>
676+
<span id="676">676</span>
677+
<span id="677">677</span>
678+
<span id="678">678</span>
679+
<span id="679">679</span>
680+
<span id="680">680</span>
681+
<span id="681">681</span>
682+
<span id="682">682</span>
674683
</pre><pre class="rust"><code><span class="doccomment">/*!
675684
# Vulkan API internals.
676685

@@ -704,7 +713,7 @@
704713
<span class="kw">mod </span>device;
705714
<span class="kw">mod </span>instance;
706715

707-
<span class="kw">use </span>std::{borrow::Borrow, ffi::CStr, num::NonZeroU32, sync::Arc};
716+
<span class="kw">use </span>std::{borrow::Borrow, ffi::CStr, fmt, num::NonZeroU32, sync::Arc};
708717

709718
<span class="kw">use </span>arrayvec::ArrayVec;
710719
<span class="kw">use </span>ash::{
@@ -1116,7 +1125,16 @@
11161125
</span>rpass_debug_marker_active: bool,
11171126
}
11181127

1119-
<span class="kw">pub struct </span>CommandBuffer {
1128+
<span class="kw">impl </span>fmt::Debug <span class="kw">for </span>CommandEncoder {
1129+
<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 {
1130+
f.debug_struct(<span class="string">&quot;CommandEncoder&quot;</span>)
1131+
.field(<span class="string">&quot;raw&quot;</span>, <span class="kw-2">&amp;</span><span class="self">self</span>.raw)
1132+
.finish()
1133+
}
1134+
}
1135+
1136+
<span class="attribute">#[derive(Debug)]
1137+
</span><span class="kw">pub struct </span>CommandBuffer {
11201138
raw: vk::CommandBuffer,
11211139
}
11221140

β€Ždoc/wgpu_hal/api/struct.Empty.html

+1-1
Large diffs are not rendered by default.

β€Ždoc/wgpu_hal/enum.DeviceError.html

+1-1
Large diffs are not rendered by default.

β€Ždoc/wgpu_hal/trait.Api.html

+2-2
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)