Skip to content

Commit 1bc6875

Browse files
committed
use allow-glsl option for slangc for GLSL compatibility example
1 parent 2eecfd1 commit 1bc6875

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chapters/slang.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ For GLSL compatibility mode:
464464

465465
[source]
466466
----
467-
slangc -profile glsl_spirv -entry main -o output.spv -language glsl input.glsl
467+
slangc -profile glsl_spirv -entry main -o output.spv -allow-glsl input.glsl
468468
----
469469

470470
Key command-line options include:
@@ -473,6 +473,7 @@ Key command-line options include:
473473
* `-entry`: Specifies the entry point function
474474
* `-o`: Specifies the output file
475475
* `-language`: Specifies the input language (default is Slang)
476+
* `-allow-glsl`: Enables GLSL as an input language
476477
* `-target`: Specifies the target platform (e.g., `vulkan`)
477478

478479
=== Runtime compilation using the library

0 commit comments

Comments
 (0)