Skip to content

Commit

Permalink
WGSLLanguageExtension -> WgslLanguageFeature
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 0bc74e2 commit 763b8db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion naga/src/front/wgsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub use crate::front::wgsl::error::ParseError;
use crate::front::wgsl::lower::Lowerer;
use crate::Scalar;

pub use crate::front::wgsl::parse::directive::language_extension::ImplementedLanguageExtension as WGSLLanguageExtension;
pub use crate::front::wgsl::parse::directive::language_extension::ImplementedLanguageExtension as WgslLanguageFeature;

pub struct Frontend {
parser: Parser,
Expand Down
2 changes: 1 addition & 1 deletion naga/src/front/wgsl/parse/directive/language_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl LanguageExtension {
pub enum ImplementedLanguageExtension {}

impl ImplementedLanguageExtension {
/// Returns slice of all variants of [`ImplementedLanguageExtension`]
/// Returns slice of all variants of [`ImplementedLanguageExtension`].
pub const fn all() -> &'static [Self] {
Self::VARIANTS
}
Expand Down
4 changes: 2 additions & 2 deletions wgpu/src/backend/wgpu_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,9 +854,9 @@ impl dispatch::InstanceInterface for ContextWgpuCore {

#[cfg(feature = "wgsl")]
fn wgsl_language_features(&self) -> crate::WGSLLanguageFeatures {
use wgc::naga::front::wgsl::WGSLLanguageExtension;
use wgc::naga::front::wgsl::WgslLanguageFeature;
let wgsl_language_features = crate::WGSLLanguageFeatures::empty();
WGSLLanguageExtension::all()
WgslLanguageFeature::all()
.iter()
.for_each(|wle| match *wle {});
wgsl_language_features
Expand Down

0 comments on commit 763b8db

Please sign in to comment.