Skip to content

Commit d431dfd

Browse files
authored
Update .cargo/config Shader Compilation Setup (#356)
Update the example .cargo/config to match the rustc args passed in by spirv-builder.
1 parent d883b6c commit d431dfd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/src/writing-shader-crates.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ default installation.
6060
```toml
6161
[build]
6262
target = "spirv-unknown-unknown"
63-
rustflags = ["-Zcodegen-backend=<path_to_librustc_codegen_spirv>"]
63+
rustflags = [
64+
"-Zcodegen-backend=<path_to_librustc_codegen_spirv>",
65+
"-Zsymbol-mangling-version=v0"
66+
]
6467

6568
[unstable]
6669
build-std=["core"]

0 commit comments

Comments
 (0)