Skip to content

Commit 858c7c5

Browse files
authored
Add GLSL450 intrinsics to SPIRV direct emit. (shader-slang#1921)
* Add GLSL450 intrinsics to SPIRV direct emit. * Fix. * Fix compiler error. * Fix. * Fix compiler error. * Make direct-spirv tests actually run.
1 parent 6406523 commit 858c7c5

25 files changed

+1092
-232
lines changed

slang.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,10 @@ extern "C"
613613
SLANG_TARGET_FLAG_GENERATE_WHOLE_PROGRAM = 1 << 8,
614614

615615
/* When set, will dump out the IR between intermediate compilation steps.*/
616-
SLANG_TARGET_FLAG_DUMP_IR = 1 << 9
616+
SLANG_TARGET_FLAG_DUMP_IR = 1 << 9,
617+
618+
/* When set, will generate SPIRV directly instead of going through glslang. */
619+
SLANG_TARGET_FLAG_GENERATE_SPIRV_DIRECTLY = 1 << 10,
617620
};
618621

619622
/*!

0 commit comments

Comments
 (0)