Skip to content

Commit 14c7430

Browse files
committed
Various fixes for CI
1 parent 57eb0a7 commit 14c7430

7 files changed

Lines changed: 17 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ authors = ["gfx-rs developers"]
7474
[workspace.dependencies]
7575
naga = { version = "29.0.0", path = "./naga" }
7676
naga-test = { path = "./naga-test" }
77-
naga-types = { path = "./naga-types" }
77+
naga-types = { version = "29.0.0", path = "./naga-types" }
7878
wgpu = { version = "29.0.0", path = "./wgpu", default-features = false, features = [
7979
"std",
8080
"serde",

naga-types/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Naga-types contains some types used by both naga and wgpu. Naga may be an optional dependency of wgpu in the future,
44
so these can't live in naga. Additionally, naga is a mostly independent crate, so it cannot depend on wgpu-types.
5-
For this reason, the types must live in a naga-specific crate but not naga itself. Naga-types serves that purpose.
5+
For this reason, the types must live in a naga-specific crate but not naga itself. Naga-types serves that purpose.

naga/src/back/glsl/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl FeaturesManager {
8585
}
8686

8787
/// Checks that all required [`Features`] are available for the specified
88-
/// [`Version`] otherwise returns an [`Error::MissingFeatures`].
88+
/// [`GlslVersion`] otherwise returns an [`Error::MissingFeatures`].
8989
pub fn check_availability(&self, version: GlslVersion) -> BackendResult {
9090
// Will store all the features that are unavailable
9191
let mut missing = Features::empty();

naga/src/back/glsl/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pub enum Error {
408408
/// A error occurred while writing to the output.
409409
#[error("Format error")]
410410
FmtError(#[from] FmtError),
411-
/// The specified [`Version`] doesn't have all required [`Features`].
411+
/// The specified [`GlslVersion`] doesn't have all required [`Features`].
412412
///
413413
/// Contains the missing [`Features`].
414414
#[error("The selected version doesn't support {0:?}")]
@@ -417,7 +417,7 @@ pub enum Error {
417417
/// once in the entry point, which isn't supported.
418418
#[error("Multiple immediates aren't supported")]
419419
MultipleImmediateData,
420-
/// The specified [`Version`] isn't supported.
420+
/// The specified [`GlslVersion`] isn't supported.
421421
#[error("The specified version isn't supported")]
422422
VersionNotSupported,
423423
/// The entry point couldn't be found.

wgpu-hal/src/dx12/device.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,11 @@ impl super::Device {
418418

419419
let source_name = stage.module.raw_name.as_deref();
420420

421-
let full_stage = format!("{}_{}", naga_stage.to_hlsl_str(), key.shader_model.to_str());
421+
let full_stage = format!(
422+
"{}_{}",
423+
naga::back::hlsl::shader_stage_to_hlsl_str(naga_stage),
424+
key.shader_model.to_str()
425+
);
422426

423427
let compiled_shader = self.compiler_container.compile(
424428
self,

wgpu-hal/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
)]
242242

243243
extern crate alloc;
244+
#[allow(unused_extern_crates)]
244245
extern crate naga_types as nt;
245246
extern crate wgpu_types as wgt;
246247
// Each of these backends needs `std` in some fashion; usually `std::thread` functions.

wgpu-types/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ default = ["std"]
4040
std = ["js-sys?/std", "web-sys?/std", "naga-types/std"]
4141
strict_asserts = []
4242
fragile-send-sync-non-atomic-wasm = []
43-
serde = ["dep:serde", "bitflags/serde", "naga-types/serialize", "naga-types/deserialize"]
43+
serde = [
44+
"dep:serde",
45+
"bitflags/serde",
46+
"naga-types/serialize",
47+
"naga-types/deserialize",
48+
]
4449
# Enables some internal instrumentation for debugging purposes.
4550
counters = []
4651
# Enables variants of `Trace` other than `Trace::Off`

0 commit comments

Comments
 (0)