Skip to content

Commit 868ce9c

Browse files
Deploying to master from @ gfx-rs/wgpu@a8c9356 🚀
1 parent 6f777cb commit 868ce9c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

doc/src/naga/front/wgsl/error.rs.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@
19351935
},
19361936
Error::DirectiveNotYetImplemented { kind, span } => ParseError {
19371937
message: <span class="macro">format!</span>(
1938-
<span class="string">"`{}` is not yet implemented"</span>,
1938+
<span class="string">"the `{}` directive is not yet implemented"</span>,
19391939
DirectiveKind::Unimplemented(kind).to_ident()
19401940
),
19411941
labels: <span class="macro">vec!</span>[(
@@ -1965,13 +1965,13 @@
19651965
},
19661966
Error::EnableExtensionNotYetImplemented { kind, span } =&gt; ParseError {
19671967
message: <span class="macro">format!</span>(
1968-
<span class="string">"the `{}` extension is not yet supported"</span>,
1968+
<span class="string">"the `{}` enable-extension is not yet supported"</span>,
19691969
EnableExtension::Unimplemented(kind).to_ident()
19701970
),
19711971
labels: <span class="macro">vec!</span>[(
19721972
span,
19731973
<span class="macro">concat!</span>(
1974-
<span class="string">"this extension specifies standard functionality "</span>,
1974+
<span class="string">"this enable-extension specifies standard functionality "</span>,
19751975
<span class="string">"which is not yet implemented in Naga"
19761976
</span>)
19771977
.into(),
@@ -1986,12 +1986,12 @@
19861986
)],
19871987
},
19881988
Error::EnableExtensionNotEnabled { kind, span } =&gt; ParseError {
1989-
message: <span class="macro">format!</span>(<span class="string">"`{}` enable extension is not enabled"</span>, kind.to_ident()),
1989+
message: <span class="macro">format!</span>(<span class="string">"`{}` enable-extension is not enabled"</span>, kind.to_ident()),
19901990
labels: <span class="macro">vec!</span>[(
19911991
span,
19921992
<span class="macro">format!</span>(
19931993
<span class="macro">concat!</span>(
1994-
<span class="string">"the `{}` enable extension is needed for this functionality, "</span>,
1994+
<span class="string">"the `{}` enable-extension is needed for this functionality, "</span>,
19951995
<span class="string">"but it is not currently enabled"
19961996
</span>),
19971997
kind.to_ident()
@@ -2001,7 +2001,7 @@
20012001
notes: <span class="kw">if let </span>EnableExtension::Unimplemented(kind) = kind {
20022002
<span class="macro">vec!</span>[<span class="macro">format!</span>(
20032003
<span class="macro">concat!</span>(
2004-
<span class="string">"This extension is not yet implemented. "</span>,
2004+
<span class="string">"This enable-extension is not yet implemented. "</span>,
20052005
<span class="string">"Let Naga maintainers know that you ran into this at "</span>,
20062006
<span class="string">"&lt;https://github.com/gfx-rs/wgpu/issues/{}&gt;, "</span>,
20072007
<span class="string">"so they can prioritize it!"

doc/src/naga/front/wgsl/parse/directive.rs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
</span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">enum </span>DirectiveKind {
168168
<span class="doccomment">/// An [`enable_extension`].
169169
</span>Enable,
170-
<span class="doccomment">/// A language extension.
170+
<span class="doccomment">/// A [`language_extension`].
171171
</span>Requires,
172172
Unimplemented(UnimplementedDirectiveKind),
173173
}
@@ -238,7 +238,7 @@
238238
UnimplementedDirectiveKind::Diagnostic =&gt; {
239239
shader = <span class="string">"diagnostic(off,derivative_uniformity);"</span>;
240240
expected_msg = <span class="string">"\
241-
error: `diagnostic` is not yet implemented
241+
error: the `diagnostic` directive is not yet implemented
242242
┌─ wgsl:1:1
243243
244244
1 │ diagnostic(off,derivative_uniformity);

doc/src/naga/front/wgsl/parse/directive/enable_extension.rs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
//! The focal point of this module is the [`EnableExtension`] API.
117117
</span><span class="kw">use crate</span>::{front::wgsl::error::Error, Span};
118118

119-
<span class="doccomment">/// Tracks the status of every enable extension known to Naga.
119+
<span class="doccomment">/// Tracks the status of every enable-extension known to Naga.
120120
</span><span class="attr">#[derive(Clone, Debug, Eq, PartialEq)]
121121
</span><span class="kw">pub struct </span>EnableExtensions {}
122122

@@ -125,14 +125,14 @@
125125
<span class="self">Self </span>{}
126126
}
127127

128-
<span class="doccomment">/// Add an enable extension to the set requested by a module.
128+
<span class="doccomment">/// Add an enable-extension to the set requested by a module.
129129
</span><span class="attr">#[allow(unreachable_code)]
130130
</span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>add(<span class="kw-2">&amp;mut </span><span class="self">self</span>, ext: ImplementedEnableExtension) {
131131
<span class="kw">let </span>_field: <span class="kw-2">&amp;mut </span>bool = <span class="kw">match </span>ext {};
132132
<span class="kw-2">*</span>_field = <span class="bool-val">true</span>;
133133
}
134134

135-
<span class="doccomment">/// Query whether an enable extension tracked here has been requested.
135+
<span class="doccomment">/// Query whether an enable-extension tracked here has been requested.
136136
</span><span class="attr">#[allow(unused)]
137137
</span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">const fn </span>contains(<span class="kw-2">&amp;</span><span class="self">self</span>, ext: ImplementedEnableExtension) -&gt; bool {
138138
<span class="kw">match </span>ext {}
@@ -145,7 +145,7 @@
145145
}
146146
}
147147

148-
<span class="doccomment">/// A shader language extension not guaranteed to be present in all environments.
148+
<span class="doccomment">/// An enable-extension not guaranteed to be present in all environments.
149149
///
150150
/// WGSL spec.: &lt;https://www.w3.org/TR/WGSL/#enable-extensions-sec&gt;
151151
</span><span class="attr">#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]

0 commit comments

Comments
 (0)