Skip to content

Commit 33d9bc5

Browse files
authored
Update builtin-rules.md
1 parent 998676e commit 33d9bc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/zh/api/description/builtin-rules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,16 +663,16 @@ static unsigned char g_test_frag_spv_data[] = {
663663

664664
除了 `utils.glsl2spv` 规则,我们现在还支持 `utils.hlsl2spv` 规则。
665665

666-
```sh
666+
```lua
667667
add_rules("mode.debug", "mode.release")
668668

669-
add_requires("glslang", {configs = {binaryonly = true}})
669+
add_requires("directxshadercompiler")
670670

671671
target("test")
672672
set_kind("binary")
673673
add_rules("utils.hlsl2spv", {bin2c = true})
674674
add_files("src/*.c")
675-
add_files("src/*.hlsl", "src/*.hlsl")
675+
add_files("src/*.hlsl")
676676
add_packages("directxshadercompiler")
677677
```
678678

0 commit comments

Comments
 (0)