Skip to content

Commit d85ca8b

Browse files
Deploying to master from @ gfx-rs/wgpu@5146b3f 🚀
1 parent d7974b2 commit d85ca8b

File tree

4 files changed

+275
-258
lines changed

4 files changed

+275
-258
lines changed

doc/naga/proc/namer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<!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 `namer` mod in crate `naga`."><title>naga::proc::namer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-1a91846b.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.88.0 (6b00bc388 2025-06-23)" data-channel="1.88.0" data-search-js="search-f7877310.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-4e99c027.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-7ef8a74a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../naga/index.html">naga</a><span class="version">26.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module namer</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In naga::<wbr>proc</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">naga</a>::<wbr><a href="../index.html">proc</a></div><h1>Module <span>namer</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/naga/proc/namer.rs.html#1-371">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Namer.html" title="struct naga::proc::namer::Namer">Namer</a></dt><dd>This processor assigns names to all the things in a module
1+
<!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 `namer` mod in crate `naga`."><title>naga::proc::namer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-1a91846b.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.88.0 (6b00bc388 2025-06-23)" data-channel="1.88.0" data-search-js="search-f7877310.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-4e99c027.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-7ef8a74a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../naga/index.html">naga</a><span class="version">26.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module namer</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In naga::<wbr>proc</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">naga</a>::<wbr><a href="../index.html">proc</a></div><h1>Module <span>namer</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/naga/proc/namer.rs.html#1-388">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Namer.html" title="struct naga::proc::namer::Namer">Namer</a></dt><dd>This processor assigns names to all the things in a module
22
that may need identifiers in a textual backend.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.ExternalTextureNameKey.html" title="enum naga::proc::namer::ExternalTextureNameKey">External<wbr>Texture<wbr>Name<wbr>Key</a></dt><dd>A component of a lowered external texture.</dd><dt><a class="enum" href="enum.NameKey.html" title="enum naga::proc::namer::NameKey">NameKey</a></dt></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.SEPARATOR.html" title="constant naga::proc::namer::SEPARATOR">SEPARATOR</a><span title="Restricted Visibility">&nbsp;🔒</span> </dt></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.EntryPointIndex.html" title="type naga::proc::namer::EntryPointIndex">Entry<wbr>Point<wbr>Index</a></dt></dl></section></div></main></body></html>

doc/naga/proc/namer/struct.Namer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This processor assigns names to all the things in a module
77
that may need identifiers in a textual backend.</p>
88
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.unique" class="structfield section-header"><a href="#structfield.unique" class="anchor field">§</a><code>unique: <a class="type" href="../../type.FastHashMap.html" title="type naga::FastHashMap">FastHashMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>The last numeric suffix used for each base name. Zero means “no suffix”.</p>
9-
</div><span id="structfield.keywords" class="structfield section-header"><a href="#structfield.keywords" class="anchor field">§</a><code>keywords: &amp;'static <a class="struct" href="../struct.KeywordSet.html" title="struct naga::proc::KeywordSet">KeywordSet</a></code></span><span id="structfield.keywords_case_insensitive" class="structfield section-header"><a href="#structfield.keywords_case_insensitive" class="anchor field">§</a><code>keywords_case_insensitive: &amp;'static <a class="struct" href="../struct.CaseInsensitiveKeywordSet.html" title="struct naga::proc::CaseInsensitiveKeywordSet">CaseInsensitiveKeywordSet</a></code></span><span id="structfield.reserved_prefixes" class="structfield section-header"><a href="#structfield.reserved_prefixes" class="anchor field">§</a><code>reserved_prefixes: <a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>&gt;</code></span><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-Namer" class="impl"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#97-361">Source</a><a href="#impl-Namer" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="../struct.Namer.html" title="struct naga::proc::Namer">Namer</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sanitize" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#108-146">Source</a><h4 class="code-header">fn <a href="#method.sanitize" class="fn">sanitize</a>&lt;'s&gt;(&amp;self, string: &amp;'s <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'s, <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>&gt;</h4></section></summary><div class="docblock"><p>Return a form of <code>string</code> suitable for use as the base of an identifier.</p>
9+
</div><span id="structfield.keywords" class="structfield section-header"><a href="#structfield.keywords" class="anchor field">§</a><code>keywords: &amp;'static <a class="struct" href="../struct.KeywordSet.html" title="struct naga::proc::KeywordSet">KeywordSet</a></code></span><span id="structfield.keywords_case_insensitive" class="structfield section-header"><a href="#structfield.keywords_case_insensitive" class="anchor field">§</a><code>keywords_case_insensitive: &amp;'static <a class="struct" href="../struct.CaseInsensitiveKeywordSet.html" title="struct naga::proc::CaseInsensitiveKeywordSet">CaseInsensitiveKeywordSet</a></code></span><span id="structfield.reserved_prefixes" class="structfield section-header"><a href="#structfield.reserved_prefixes" class="anchor field">§</a><code>reserved_prefixes: <a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;&amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>&gt;</code></span><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-Namer" class="impl"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#97-378">Source</a><a href="#impl-Namer" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="../struct.Namer.html" title="struct naga::proc::Namer">Namer</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sanitize" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#108-163">Source</a><h4 class="code-header">fn <a href="#method.sanitize" class="fn">sanitize</a>&lt;'s&gt;(&amp;self, string: &amp;'s <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.88.0/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'s, <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>&gt;</h4></section></summary><div class="docblock"><p>Return a form of <code>string</code> suitable for use as the base of an identifier.</p>
1010
<ul>
1111
<li>Drop leading digits.</li>
1212
<li>Retain only alphanumeric and <code>_</code> characters.</li>
@@ -16,7 +16,7 @@
1616
<p>The return value is a valid identifier prefix in all of Naga’s output languages,
1717
and it never ends with a <code>SEPARATOR</code> character.
1818
It is used as a key into the unique table.</p>
19-
</div></details><details class="toggle method-toggle" open><summary><section id="method.call" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#158-192">Source</a><h4 class="code-header">pub fn <a href="#method.call" class="fn">call</a>(&amp;mut self, label_raw: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Return a new identifier based on <code>label_raw</code>.</p>
19+
</div></details><details class="toggle method-toggle" open><summary><section id="method.call" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#175-209">Source</a><h4 class="code-header">pub fn <a href="#method.call" class="fn">call</a>(&amp;mut self, label_raw: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Return a new identifier based on <code>label_raw</code>.</p>
2020
<p>The result:</p>
2121
<ul>
2222
<li>is a valid identifier even if <code>label_raw</code> is not</li>
@@ -26,11 +26,11 @@
2626
</ul>
2727
<p>Guarantee uniqueness by applying a numeric suffix when necessary. If <code>label_raw</code>
2828
itself ends with digits, separate them from the suffix with an underscore.</p>
29-
</div></details><section id="method.call_or" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#194-199">Source</a><h4 class="code-header">pub fn <a href="#method.call_or" class="fn">call_or</a>(&amp;mut self, label: &amp;<a class="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;, fallback: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.namespace" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#206-211">Source</a><h4 class="code-header">fn <a href="#method.namespace" class="fn">namespace</a>(&amp;mut self, capacity: <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.usize.html">usize</a>, body: impl <a class="trait" href="https://doc.rust-lang.org/1.88.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut Self))</h4></section></summary><div class="docblock"><p>Enter a local namespace for things like structs.</p>
29+
</div></details><section id="method.call_or" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#211-216">Source</a><h4 class="code-header">pub fn <a href="#method.call_or" class="fn">call_or</a>(&amp;mut self, label: &amp;<a class="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;, fallback: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.88.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.namespace" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#223-228">Source</a><h4 class="code-header">fn <a href="#method.namespace" class="fn">namespace</a>(&amp;mut self, capacity: <a class="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.usize.html">usize</a>, body: impl <a class="trait" href="https://doc.rust-lang.org/1.88.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;mut Self))</h4></section></summary><div class="docblock"><p>Enter a local namespace for things like structs.</p>
3030
<p>Struct member names only need to be unique amongst themselves, not
3131
globally. This function temporarily establishes a fresh, empty naming
3232
context for the duration of the call to <code>body</code>.</p>
33-
</div></details><section id="method.reset" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#213-360">Source</a><h4 class="code-header">pub fn <a href="#method.reset" class="fn">reset</a>(
33+
</div></details><section id="method.reset" class="method"><a class="src rightside" href="../../../src/naga/proc/namer.rs.html#230-377">Source</a><h4 class="code-header">pub fn <a href="#method.reset" class="fn">reset</a>(
3434
&amp;mut self,
3535
module: &amp;<a class="struct" href="../../ir/struct.Module.html" title="struct naga::ir::Module">Module</a>,
3636
reserved_keywords: &amp;'static <a class="struct" href="../struct.KeywordSet.html" title="struct naga::proc::KeywordSet">KeywordSet</a>,

0 commit comments

Comments
 (0)