Update naga to 0.12.0@git:76003dc0035d53a474d366dcdf49d2e4d12e921f (#3866)

This commit is contained in:
Teodor Tanasoaia 2023-06-14 18:55:33 +02:00 committed by GitHub
parent d8b2c3866e
commit dcad7dfba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 8 deletions

7
Cargo.lock generated
View File

@ -185,6 +185,9 @@ name = "bitflags"
version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dbe3c979c178231552ecba20214a8272df4e09f232a87aef4320cf06539aded"
dependencies = [
"serde",
]
[[package]]
name = "block"
@ -1521,10 +1524,10 @@ dependencies = [
[[package]]
name = "naga"
version = "0.12.0"
source = "git+https://github.com/gfx-rs/naga?rev=b99d58ea435090e561377949f428bce2c18451bb#b99d58ea435090e561377949f428bce2c18451bb"
source = "git+https://github.com/gfx-rs/naga?rev=76003dc0035d53a474d366dcdf49d2e4d12e921f#76003dc0035d53a474d366dcdf49d2e4d12e921f"
dependencies = [
"bit-set",
"bitflags 1.3.2",
"bitflags 2.3.2",
"codespan-reporting",
"hexf-parse",
"indexmap",

View File

@ -51,7 +51,7 @@ version = "0.16"
[workspace.dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "b99d58ea435090e561377949f428bce2c18451bb"
rev = "76003dc0035d53a474d366dcdf49d2e4d12e921f"
version = "0.12.0"
[workspace.dependencies]

View File

@ -67,7 +67,7 @@ thiserror = "1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "b99d58ea435090e561377949f428bce2c18451bb"
rev = "76003dc0035d53a474d366dcdf49d2e4d12e921f"
version = "0.12.0"
features = ["clone", "span", "validate"]

View File

@ -915,7 +915,7 @@ impl Interface {
size: wgt::BufferSize::new(stride as u64).unwrap(),
},
ref other => ResourceType::Buffer {
size: wgt::BufferSize::new(other.size(&module.constants) as u64).unwrap(),
size: wgt::BufferSize::new(other.size(module.to_ctx()) as u64).unwrap(),
},
};
let handle = resources.append(

View File

@ -118,14 +118,14 @@ android_system_properties = "0.1.1"
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "b99d58ea435090e561377949f428bce2c18451bb"
rev = "76003dc0035d53a474d366dcdf49d2e4d12e921f"
version = "0.12.0"
features = ["clone"]
# DEV dependencies
[dev-dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "b99d58ea435090e561377949f428bce2c18451bb"
rev = "76003dc0035d53a474d366dcdf49d2e4d12e921f"
version = "0.12.0"
features = ["wgsl-in"]

View File

@ -175,7 +175,7 @@ impl super::Device {
match var.space {
naga::AddressSpace::WorkGroup => {
if !ep_info[var_handle].is_empty() {
let size = module.types[var.ty].inner.size(&module.constants);
let size = module.types[var.ty].inner.size(module.to_ctx());
wg_memory_sizes.push(size);
}
}