Skip to content

Commit

Permalink
capabilities (TODO: needs to be checked)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elabajaba committed Dec 6, 2023
1 parent f33f989 commit cbcc028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ wgpu = { version = "0.18", features = [
"naga",
"fragile-send-sync-non-atomic-wasm",
] }
naga = { version = "0.14.0", features = ["wgsl-in"] }
naga = { version = "0.14.1", features = ["wgsl-in"] }
naga_oil = "0.11"
serde = { version = "1", features = ["derive"] }
bitflags = "2.3"
Expand Down
4 changes: 4 additions & 0 deletions crates/bevy_render/src/render_resource/pipeline_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ impl ShaderCache {
}
}

// TODO: Check if this is supported, though I'm not sure if bevy works without this feature?
// We can't compile for native at least without it.
capabilities |= Capabilities::CUBE_ARRAY_TEXTURES;

#[cfg(debug_assertions)]
let composer = naga_oil::compose::Composer::default();
#[cfg(not(debug_assertions))]
Expand Down

0 comments on commit cbcc028

Please sign in to comment.