Skip to content

Commit 164ac36

Browse files
committed
Deploying to master from @ caee97e4023f57c373b3406fea195674cdf4a598 🚀
1 parent 3e44c37 commit 164ac36

File tree

6 files changed

+45
-10
lines changed

6 files changed

+45
-10
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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3799,6 +3799,23 @@
37993799
<span id="3797">3797</span>
38003800
<span id="3798">3798</span>
38013801
<span id="3799">3799</span>
3802+
<span id="3800">3800</span>
3803+
<span id="3801">3801</span>
3804+
<span id="3802">3802</span>
3805+
<span id="3803">3803</span>
3806+
<span id="3804">3804</span>
3807+
<span id="3805">3805</span>
3808+
<span id="3806">3806</span>
3809+
<span id="3807">3807</span>
3810+
<span id="3808">3808</span>
3811+
<span id="3809">3809</span>
3812+
<span id="3810">3810</span>
3813+
<span id="3811">3811</span>
3814+
<span id="3812">3812</span>
3815+
<span id="3813">3813</span>
3816+
<span id="3814">3814</span>
3817+
<span id="3815">3815</span>
3818+
<span id="3816">3816</span>
38023819
</pre><pre class="rust"><code><span class="doccomment">//! A cross-platform graphics and compute library based on [WebGPU](https://gpuweb.github.io/gpuweb/).
38033820
//!
38043821
//! To start using the API, create an [`Instance`].
@@ -7514,6 +7531,23 @@
75147531
Context::surface_get_supported_alpha_modes(<span class="kw-2">&amp;*</span><span class="self">self</span>.context, <span class="kw-2">&amp;</span><span class="self">self</span>.id, <span class="kw-2">&amp;</span>adapter.id)
75157532
}
75167533

7534+
<span class="doccomment">/// Return a default `SurfaceConfiguration` from width and height to use for the [`Surface`] with this adapter.
7535+
</span><span class="kw">pub fn </span>get_default_config(
7536+
<span class="kw-2">&amp;</span><span class="self">self</span>,
7537+
adapter: <span class="kw-2">&amp;</span>Adapter,
7538+
width: u32,
7539+
height: u32,
7540+
) -&gt; wgt::SurfaceConfiguration {
7541+
wgt::SurfaceConfiguration {
7542+
usage: wgt::TextureUsages::RENDER_ATTACHMENT,
7543+
format: <span class="self">self</span>.get_supported_formats(adapter)[<span class="number">0</span>],
7544+
width,
7545+
height,
7546+
present_mode: <span class="self">self</span>.get_supported_present_modes(adapter)[<span class="number">0</span>],
7547+
alpha_mode: wgt::CompositeAlphaMode::Auto,
7548+
}
7549+
}
7550+
75177551
<span class="doccomment">/// Initializes [`Surface`] for presentation.
75187552
///
75197553
/// # Panics

‎doc/wgpu/enum.Error.html

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

‎doc/wgpu/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A cross-platform graphics and compute library based on WebGPU."><meta name="keywords" content="rust, rustlang, rust-lang, wgpu"><title>wgpu - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="../crates.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../wgpu/index.html"><div class="logo-container"><img src="https://raw.githubusercontent.com/gfx-rs/wgpu/master/logo.png" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../wgpu/index.html"><div class="logo-container">
22
<img src="https://raw.githubusercontent.com/gfx-rs/wgpu/master/logo.png" alt="logo"></div></a><h2 class="location"><a href="#">Crate wgpu</a></h2><div class="sidebar-elems"><ul class="block"><li class="version">Version 0.14.0</li><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#modules">Modules</a></li><li><a href="#macros">Macros</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#types">Type Definitions</a></li></ul></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../wgpu/index.html">
3-
<img src="https://raw.githubusercontent.com/gfx-rs/wgpu/master/logo.png" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Crate <a class="mod" href="#">wgpu</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/wgpu/lib.rs.html#1-3799">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A cross-platform graphics and compute library based on <a href="https://gpuweb.github.io/gpuweb/">WebGPU</a>.</p>
3+
<img src="https://raw.githubusercontent.com/gfx-rs/wgpu/master/logo.png" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Crate <a class="mod" href="#">wgpu</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/wgpu/lib.rs.html#1-3816">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A cross-platform graphics and compute library based on <a href="https://gpuweb.github.io/gpuweb/">WebGPU</a>.</p>
44
<p>To start using the API, create an <a href="struct.Instance.html" title="Instance"><code>Instance</code></a>.</p>
55
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="util/index.html" title="wgpu::util mod">util</a></div><div class="item-right docblock-short">Utility structures and functions.</div></div></div><h2 id="macros" class="small-section-header"><a href="#macros">Macros</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="macro" href="macro.include_spirv_raw.html" title="wgpu::include_spirv_raw macro">include_spirv_raw</a></div><div class="item-right docblock-short">Macro to load raw SPIR-V data statically, for use with <a href="struct.Features.html#associatedconstant.SPIRV_SHADER_PASSTHROUGH"><code>Features::SPIRV_SHADER_PASSTHROUGH</code></a>.</div></div><div class="item-row"><div class="item-left module-item"><a class="macro" href="macro.include_wgsl.html" title="wgpu::include_wgsl macro">include_wgsl</a></div><div class="item-right docblock-short">Macro to load a WGSL module statically.</div></div><div class="item-row"><div class="item-left module-item"><a class="macro" href="macro.vertex_attr_array.html" title="wgpu::vertex_attr_array macro">vertex_attr_array</a></div><div class="item-right docblock-short">Macro to produce an array of <a href="struct.VertexAttribute.html"><code>VertexAttribute</code></a>.</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Adapter.html" title="wgpu::Adapter struct">Adapter</a></div><div class="item-right docblock-short">Handle to a physical graphics and/or compute device.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AdapterInfo.html" title="wgpu::AdapterInfo struct">AdapterInfo</a></div><div class="item-right docblock-short">Information about an adapter.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Backends.html" title="wgpu::Backends struct">Backends</a></div><div class="item-right docblock-short">Represents the backends that wgpu will use.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BindGroup.html" title="wgpu::BindGroup struct">BindGroup</a></div><div class="item-right docblock-short">Handle to a binding group.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BindGroupDescriptor.html" title="wgpu::BindGroupDescriptor struct">BindGroupDescriptor</a></div><div class="item-right docblock-short">Describes a group of bindings and the resources to be bound.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BindGroupEntry.html" title="wgpu::BindGroupEntry struct">BindGroupEntry</a></div><div class="item-right docblock-short">An element of a <a href="struct.BindGroupDescriptor.html" title="BindGroupDescriptor"><code>BindGroupDescriptor</code></a>, consisting of a bindable resource
66
and the slot to bind it to.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BindGroupLayout.html" title="wgpu::BindGroupLayout struct">BindGroupLayout</a></div><div class="item-right docblock-short">Handle to a binding group layout.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BindGroupLayoutDescriptor.html" title="wgpu::BindGroupLayoutDescriptor struct">BindGroupLayoutDescriptor</a></div><div class="item-right docblock-short">Describes a <a href="struct.BindGroupLayout.html" title="BindGroupLayout"><code>BindGroupLayout</code></a>.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BindGroupLayoutEntry.html" title="wgpu::BindGroupLayoutEntry struct">BindGroupLayoutEntry</a></div><div class="item-right docblock-short">Describes a single binding inside a bind group.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BlendComponent.html" title="wgpu::BlendComponent struct">BlendComponent</a></div><div class="item-right docblock-short">Describes a blend component of a <a href="struct.BlendState.html" title="BlendState"><code>BlendState</code></a>.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BlendState.html" title="wgpu::BlendState struct">BlendState</a></div><div class="item-right docblock-short">Describe the blend state of a render pipeline,

0 commit comments

Comments
 (0)