Skip to content

Commit 7ecd1d8

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@7eb69f4 🚀
1 parent 2fbcb3c commit 7ecd1d8

File tree

189 files changed

+1119
-427
lines changed

Some content is hidden

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

189 files changed

+1119
-427
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_core/wgpu_core-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_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/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/surface.rs.html

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,32 @@
395395
<a href="#394" id="394">394</a>
396396
<a href="#395" id="395">395</a>
397397
<a href="#396" id="396">396</a>
398-
<a href="#397" id="397">397</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{boxed::Box, string::String, vec, vec::Vec};
398+
<a href="#397" id="397">397</a>
399+
<a href="#398" id="398">398</a>
400+
<a href="#399" id="399">399</a>
401+
<a href="#400" id="400">400</a>
402+
<a href="#401" id="401">401</a>
403+
<a href="#402" id="402">402</a>
404+
<a href="#403" id="403">403</a>
405+
<a href="#404" id="404">404</a>
406+
<a href="#405" id="405">405</a>
407+
<a href="#406" id="406">406</a>
408+
<a href="#407" id="407">407</a>
409+
<a href="#408" id="408">408</a>
410+
<a href="#409" id="409">409</a>
411+
<a href="#410" id="410">410</a>
412+
<a href="#411" id="411">411</a>
413+
<a href="#412" id="412">412</a>
414+
<a href="#413" id="413">413</a>
415+
<a href="#414" id="414">414</a>
416+
<a href="#415" id="415">415</a>
417+
<a href="#416" id="416">416</a>
418+
<a href="#417" id="417">417</a>
419+
<a href="#418" id="418">418</a>
420+
<a href="#419" id="419">419</a>
421+
<a href="#420" id="420">420</a>
422+
<a href="#421" id="421">421</a>
423+
<a href="#422" id="422">422</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{boxed::Box, string::String, vec, vec::Vec};
399424
<span class="kw">use </span>core::{error, fmt};
400425

401426
<span class="kw">use </span>parking_lot::Mutex;
@@ -686,6 +711,31 @@
686711
</span>raw_window_handle: raw_window_handle::RawWindowHandle,
687712
},
688713

714+
<span class="doccomment">/// Surface from a DRM device.
715+
///
716+
/// If the specified DRM configuration is not supported by any of the backends, then the surface
717+
/// will not be supported by any adapters.
718+
///
719+
/// # Safety
720+
///
721+
/// - All parameters must point to valid DRM values and remain valid for as long as the resulting [`Surface`] exists.
722+
/// - The file descriptor (`fd`), plane, connector, and mode configuration must be valid and compatible.
723+
</span><span class="attr">#[cfg(all(unix, not(target_vendor = <span class="string">"apple"</span>), not(target_family = <span class="string">"wasm"</span>)))]
724+
</span>Drm {
725+
<span class="doccomment">/// The file descriptor of the DRM device.
726+
</span>fd: i32,
727+
<span class="doccomment">/// The plane index on which to create the surface.
728+
</span>plane: u32,
729+
<span class="doccomment">/// The ID of the connector associated with the selected mode.
730+
</span>connector_id: u32,
731+
<span class="doccomment">/// The display width of the selected mode.
732+
</span>width: u32,
733+
<span class="doccomment">/// The display height of the selected mode.
734+
</span>height: u32,
735+
<span class="doccomment">/// The display refresh rate of the selected mode multiplied by 1000 (e.g., 60Hz → 60000).
736+
</span>refresh_rate: u32,
737+
},
738+
689739
<span class="doccomment">/// Surface from `CoreAnimationLayer`.
690740
///
691741
/// # Safety

doc/src/wgpu/backend/wgpu_core.rs.html

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3617,7 +3617,27 @@
36173617
<a href="#3616" id="3616">3616</a>
36183618
<a href="#3617" id="3617">3617</a>
36193619
<a href="#3618" id="3618">3618</a>
3620-
<a href="#3619" id="3619">3619</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{
3620+
<a href="#3619" id="3619">3619</a>
3621+
<a href="#3620" id="3620">3620</a>
3622+
<a href="#3621" id="3621">3621</a>
3623+
<a href="#3622" id="3622">3622</a>
3624+
<a href="#3623" id="3623">3623</a>
3625+
<a href="#3624" id="3624">3624</a>
3626+
<a href="#3625" id="3625">3625</a>
3627+
<a href="#3626" id="3626">3626</a>
3628+
<a href="#3627" id="3627">3627</a>
3629+
<a href="#3628" id="3628">3628</a>
3630+
<a href="#3629" id="3629">3629</a>
3631+
<a href="#3630" id="3630">3630</a>
3632+
<a href="#3631" id="3631">3631</a>
3633+
<a href="#3632" id="3632">3632</a>
3634+
<a href="#3633" id="3633">3633</a>
3635+
<a href="#3634" id="3634">3634</a>
3636+
<a href="#3635" id="3635">3635</a>
3637+
<a href="#3636" id="3636">3636</a>
3638+
<a href="#3637" id="3637">3637</a>
3639+
<a href="#3638" id="3638">3638</a>
3640+
<a href="#3639" id="3639">3639</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{
36213641
borrow::Cow::Borrowed,
36223642
boxed::Box,
36233643
format,
@@ -4413,6 +4433,26 @@
44134433
</span>.instance_create_surface(raw_display_handle, raw_window_handle, <span class="prelude-val">None</span>)
44144434
},
44154435

4436+
<span class="attr">#[cfg(all(unix, not(target_vendor = <span class="string">"apple"</span>), not(target_family = <span class="string">"wasm"</span>)))]
4437+
</span>SurfaceTargetUnsafe::Drm {
4438+
fd,
4439+
plane,
4440+
connector_id,
4441+
width,
4442+
height,
4443+
refresh_rate,
4444+
} =&gt; <span class="kw">unsafe </span>{
4445+
<span class="self">self</span>.<span class="number">0</span>.instance_create_surface_from_drm(
4446+
fd,
4447+
plane,
4448+
connector_id,
4449+
width,
4450+
height,
4451+
refresh_rate,
4452+
<span class="prelude-val">None</span>,
4453+
)
4454+
},
4455+
44164456
<span class="attr">#[cfg(metal)]
44174457
</span>SurfaceTargetUnsafe::CoreAnimationLayer(layer) =&gt; <span class="kw">unsafe </span>{
44184458
<span class="self">self</span>.<span class="number">0</span>.instance_create_surface_metal(layer, <span class="prelude-val">None</span>)

0 commit comments

Comments
 (0)