aboutsummaryrefslogtreecommitdiff
path: root/libshaderc/include/shaderc/shaderc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libshaderc/include/shaderc/shaderc.h')
-rw-r--r--libshaderc/include/shaderc/shaderc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libshaderc/include/shaderc/shaderc.h b/libshaderc/include/shaderc/shaderc.h
index 46d98b4..64d94ea 100644
--- a/libshaderc/include/shaderc/shaderc.h
+++ b/libshaderc/include/shaderc/shaderc.h
@@ -23,6 +23,12 @@ extern "C" {
#include <stddef.h>
#include <stdint.h>
+// Source language kind.
+typedef enum {
+ shaderc_source_language_glsl,
+ shaderc_source_language_hlsl,
+} shaderc_source_language;
+
typedef enum {
// Forced shader kinds. These shader kinds force the compiler to compile the
// source code as the specified kind of shader.
@@ -158,6 +164,10 @@ void shaderc_compile_options_add_macro_definition(
shaderc_compile_options_t options, const char* name, size_t name_length,
const char* value, size_t value_length);
+// Sets the source language. The default is GLSL.
+void shaderc_compile_options_set_source_language(
+ shaderc_compile_options_t options, shaderc_source_language lang);
+
// Sets the compiler mode to generate debug information in the output.
void shaderc_compile_options_set_generate_debug_info(
shaderc_compile_options_t options);