Skip to content

Commit

Permalink
Deploying to master from @ gfx-rs/wgpu@f942cee 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed Sep 18, 2024
1 parent a3e82e8 commit ecba408
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/naga/back/msl/struct.Writer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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="API documentation for the Rust `Writer` struct in crate `naga`."><title>Writer in naga::back::msl - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-804b98a1284a310a.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="naga" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0-nightly (445177724 2023-12-16)" data-channel="nightly" data-search-js="search-874d56868bf05518.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc struct"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../naga/index.html">naga</a><span class="version">22.0.0</span></h2></div><h2 class="location"><a href="#">Writer</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.finish">finish</a></li><li><a href="#method.new">new</a></li><li><a href="#method.write">write</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-Writer%3CW%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Writer%3CW%3E">Send</a></li><li><a href="#impl-Sync-for-Writer%3CW%3E">Sync</a></li><li><a href="#impl-Unpin-for-Writer%3CW%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Writer%3CW%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In naga::back::msl</a></h2></div></nav><div class="sidebar-resizer"></div>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../naga/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="../../index.html">naga</a>::<wbr><a href="../index.html">back</a>::<wbr><a href="index.html">msl</a>::<wbr><a class="struct" href="#">Writer</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../../src/naga/back/msl/writer.rs.html#365-384">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub struct Writer&lt;W&gt; { <span class="comment">/* private fields */</span> }</code></pre><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Writer%3CW%3E" class="impl"><a class="src rightside" href="../../../src/naga/back/msl/writer.rs.html#659-5790">source</a><a href="#impl-Writer%3CW%3E" class="anchor">§</a><h3 class="code-header">impl&lt;W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html" title="trait core::fmt::Write">Write</a>&gt; <a class="struct" href="struct.Writer.html" title="struct naga::back::msl::Writer">Writer</a>&lt;W&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../../src/naga/back/msl/writer.rs.html#661-675">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(out: W) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new <code>Writer</code> instance.</p>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../naga/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="../../index.html">naga</a>::<wbr><a href="../index.html">back</a>::<wbr><a href="index.html">msl</a>::<wbr><a class="struct" href="#">Writer</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../../src/naga/back/msl/writer.rs.html#365-384">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub struct Writer&lt;W&gt; { <span class="comment">/* private fields */</span> }</code></pre><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Writer%3CW%3E" class="impl"><a class="src rightside" href="../../../src/naga/back/msl/writer.rs.html#659-5793">source</a><a href="#impl-Writer%3CW%3E" class="anchor">§</a><h3 class="code-header">impl&lt;W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Write.html" title="trait core::fmt::Write">Write</a>&gt; <a class="struct" href="struct.Writer.html" title="struct naga::back::msl::Writer">Writer</a>&lt;W&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../../src/naga/back/msl/writer.rs.html#661-675">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(out: W) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new <code>Writer</code> instance.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.finish" class="method"><a class="src rightside" href="../../../src/naga/back/msl/writer.rs.html#680-682">source</a><h4 class="code-header">pub fn <a href="#method.finish" class="fn">finish</a>(self) -&gt; W</h4></section></summary><div class="docblock"><p>Finishes writing and returns the output.</p>
</div></details><section id="method.write" class="method"><a class="src rightside" href="../../../src/naga/back/msl/writer.rs.html#3496-3607">source</a><h4 class="code-header">pub fn <a href="#method.write" class="fn">write</a>(
</div></details><section id="method.write" class="method"><a class="src rightside" href="../../../src/naga/back/msl/writer.rs.html#3499-3610">source</a><h4 class="code-header">pub fn <a href="#method.write" class="fn">write</a>(
&amp;mut self,
module: &amp;<a class="struct" href="../../struct.Module.html" title="struct naga::Module">Module</a>,
info: &amp;<a class="struct" href="../../valid/struct.ModuleInfo.html" title="struct naga::valid::ModuleInfo">ModuleInfo</a>,
Expand Down
6 changes: 6 additions & 0 deletions doc/src/naga/back/msl/writer.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6090,6 +6090,9 @@
<a href="#6089" id="6089">6089</a>
<a href="#6090" id="6090">6090</a>
<a href="#6091" id="6091">6091</a>
<a href="#6092" id="6092">6092</a>
<a href="#6093" id="6093">6093</a>
<a href="#6094" id="6094">6094</a>
</pre></div><pre class="rust"><code><span class="kw">use super</span>::{sampler <span class="kw">as </span>sm, Error, LocationMode, Options, PipelineOptions, TranslationInfo};
<span class="kw">use crate</span>::{
arena::{Handle, HandleSet},
Expand Down Expand Up @@ -6874,6 +6877,9 @@
///
/// To make our output a bit more legible, we pull the condition out into a
/// preprocessor macro defined at the top of the module.
///
/// This approach is also used by Chromium WebGPU's Dawn shader compiler, as of
/// &lt;https://github.com/google/dawn/commit/ffd485c685040edb1e678165dcbf0e841cfa0298&gt;.
</span><span class="kw">fn </span>emit_loop_reachable_macro(<span class="kw-2">&amp;mut </span><span class="self">self</span>) -&gt; BackendResult {
<span class="kw">if </span>!<span class="self">self</span>.loop_reachable_macro_name.is_empty() {
<span class="kw">return </span><span class="prelude-val">Ok</span>(());
Expand Down

0 comments on commit ecba408

Please sign in to comment.