Skip to content

Commit

Permalink
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
Browse files Browse the repository at this point in the history
  • Loading branch information
gents83 committed Nov 5, 2023
2 parents aa1a05f + dfa7e2f commit 1198114
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ jobs:
- name: Install Rust WASM target
run: rustup target add wasm32-unknown-unknown

- name: Install wasm-bindgen-cli
run: cargo +stable install wasm-bindgen-cli --version=0.2.87
- name: Get wasm-bindgen version
run: |
WASM_BINDGEN_VERSION=$(cargo metadata --format-version 1 --all-features | jq '.packages[] | select(.name == "wasm-bindgen") | .version' | tr -d '"')
echo $WASM_BINDGEN_VERSION
echo "WASM_BINDGEN_VERSION=$WASM_BINDGEN_VERSION" >> "$GITHUB_ENV"
- name: Pin wasm-bindgen version
run: cargo update -p wasm-bindgen --precise 0.2.87
- name: Install wasm-bindgen
run: cargo +stable install wasm-bindgen-cli --version=$WASM_BINDGEN_VERSION

- name: Build WebGPU examples
run: cargo build --release --target wasm32-unknown-unknown
Expand Down
5 changes: 4 additions & 1 deletion wgpu-hal/src/dx12/shader_compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@ mod dxc {
log::Level,
) {
profiling::scope!("compile_dxc");
let mut compile_flags = arrayvec::ArrayVec::<&str, 4>::new_const();
let mut compile_flags = arrayvec::ArrayVec::<&str, 6>::new_const();
compile_flags.push("-Ges"); // d3dcompiler::D3DCOMPILE_ENABLE_STRICTNESS
compile_flags.push("-Vd"); // Disable implicit validation to work around bugs when dxil.dll isn't in the local directory.
compile_flags.push("-HV"); // Use HLSL 2018, Naga doesn't supported 2021 yet.
compile_flags.push("2018");

if device
.private_caps
.instance_flags
Expand Down

0 comments on commit 1198114

Please sign in to comment.