Update naga to 0.11.0@git:4b796b157cb2b67b0ab166a2238fe4e9473bfd52 (#3451)

This commit is contained in:
Nicolas Silva 2023-02-03 12:30:08 +01:00 committed by GitHub
parent 42b48ecb9f
commit 6399dd4866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 14 deletions

2
Cargo.lock generated
View File

@ -1471,7 +1471,7 @@ dependencies = [
[[package]]
name = "naga"
version = "0.11.0"
source = "git+https://github.com/gfx-rs/naga?rev=f0edae8#f0edae8ce9e55eeef489fc53b10dc95fb79561cc"
source = "git+https://github.com/gfx-rs/naga?rev=4b796b157cb2b67b0ab166a2238fe4e9473bfd52#4b796b157cb2b67b0ab166a2238fe4e9473bfd52"
dependencies = [
"bit-set",
"bitflags",

View File

@ -42,8 +42,8 @@ version = "0.15"
[workspace.dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "f0edae8"
version = "0.11"
rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52"
version = "0.11.0"
[workspace.dependencies]
arrayvec = "0.7"

View File

@ -67,8 +67,8 @@ thiserror = "1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "f0edae8"
version = "0.11"
rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52"
version = "0.11.0"
features = ["clone", "span", "validate"]
[dependencies.wgt]

View File

@ -114,15 +114,15 @@ android_system_properties = "0.1.1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "f0edae8"
version = "0.11"
rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52"
version = "0.11.0"
features = ["clone"]
# DEV dependencies
[dev-dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "f0edae8"
version = "0.11"
rev = "4b796b157cb2b67b0ab166a2238fe4e9473bfd52"
version = "0.11.0"
features = ["wgsl-in"]
[dev-dependencies]

View File

@ -151,7 +151,7 @@ impl<A: hal::Api> Example<A> {
.join("halmark")
.join("shader.wgsl");
let source = std::fs::read_to_string(shader_file).unwrap();
let module = naga::front::wgsl::Parser::new().parse(&source).unwrap();
let module = naga::front::wgsl::Frontend::new().parse(&source).unwrap();
let info = naga::valid::Validator::new(
naga::valid::ValidationFlags::all(),
naga::valid::Capabilities::empty(),

View File

@ -869,7 +869,7 @@ impl crate::Context for Context {
strict_capabilities: true,
block_ctx_dump_prefix: None,
};
let parser = naga::front::spv::Parser::new(spv.iter().cloned(), &options);
let parser = naga::front::spv::Frontend::new(spv.iter().cloned(), &options);
let module = parser.parse().unwrap();
wgc::pipeline::ShaderModuleSource::Naga(Owned(module))
}
@ -884,7 +884,7 @@ impl crate::Context for Context {
stage,
defines: defines.clone(),
};
let mut parser = naga::front::glsl::Parser::default();
let mut parser = naga::front::glsl::Frontend::default();
let module = parser.parse(&options, shader).unwrap();
wgc::pipeline::ShaderModuleSource::Naga(Owned(module))

View File

@ -1175,7 +1175,7 @@ impl crate::context::Context for Context {
strict_capabilities: true,
block_ctx_dump_prefix: None,
};
let spv_parser = front::spv::Parser::new(spv.iter().cloned(), &options);
let spv_parser = front::spv::Frontend::new(spv.iter().cloned(), &options);
let spv_module = spv_parser.parse().unwrap();
let mut validator = valid::Validator::new(
@ -1202,7 +1202,7 @@ impl crate::context::Context for Context {
stage,
defines: defines.clone(),
};
let mut parser = front::glsl::Parser::default();
let mut parser = front::glsl::Frontend::default();
let glsl_module = parser.parse(&options, shader).unwrap();
let mut validator = valid::Validator::new(