Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
  • Loading branch information
sagudev committed Jan 7, 2025
1 parent 763b8db commit ce36775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wgpu/src/api/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ impl Instance {
self.inner.as_core_opt().map(|ctx| ctx.generate_report())
}

/// Returns set of supported WGSL language extensions supported by this instance
/// Returns set of supported WGSL language extensions supported by this instance.
///
/// <https://www.w3.org/TR/webgpu/#gpuwgsllanguagefeatures>
#[cfg(feature = "wgsl")]
Expand Down
4 changes: 2 additions & 2 deletions wgpu/src/backend/webgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1570,10 +1570,10 @@ impl dispatch::InstanceInterface for ContextWebGpu {
gpu.wgsl_language_features()
.keys()
.into_iter()
.map(|wlf| wlf.expect("WGSLLanguageFeatures elements should be valid"))
.map(|wlf| wlf.expect("`WGSLLanguageFeatures` elements should be valid"))
.map(|wlf| {
wlf.as_string()
.expect("WGSLLanguageFeatures should be string set")
.expect("`WGSLLanguageFeatures` should be string set")
})
.filter_map(|wlf| match wlf.as_str() {
"readonly_and_readwrite_storage_textures" => {
Expand Down

0 comments on commit ce36775

Please sign in to comment.