diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-11-03 13:18:32 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-11-03 13:18:32 +0300 |
commit | b3344174f7474c97ed473893d072317d06f156db (patch) | |
tree | 3c9efd3e9fdcbc6994093649cebbfa2e4d30ad33 /spirv_cross_c.h | |
parent | 244839d350c1e19655845fc8dc0b78ecb0dfbda6 (diff) |
HLSL: Add option to flatten matrix vertex input semantics.
Helps translation layers where we expect inputs to be multiple float
vectors rather than an indexed matrix.
Diffstat (limited to 'spirv_cross_c.h')
-rw-r--r-- | spirv_cross_c.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spirv_cross_c.h b/spirv_cross_c.h index d6802a1f..7ccec0aa 100644 --- a/spirv_cross_c.h +++ b/spirv_cross_c.h @@ -33,7 +33,7 @@ extern "C" { /* Bumped if ABI or API breaks backwards compatibility. */ #define SPVC_C_API_VERSION_MAJOR 0 /* Bumped if APIs or enumerations are added in a backwards compatible way. */ -#define SPVC_C_API_VERSION_MINOR 41 +#define SPVC_C_API_VERSION_MINOR 42 /* Bumped if internal implementation details change. */ #define SPVC_C_API_VERSION_PATCH 0 @@ -645,6 +645,8 @@ typedef enum spvc_compiler_option SPVC_COMPILER_OPTION_MSL_R32UI_LINEAR_TEXTURE_ALIGNMENT = 69 | SPVC_COMPILER_OPTION_MSL_BIT, SPVC_COMPILER_OPTION_MSL_R32UI_ALIGNMENT_CONSTANT_ID = 70 | SPVC_COMPILER_OPTION_MSL_BIT, + SPVC_COMPILER_OPTION_HLSL_FLATTEN_MATRIX_VERTEX_INPUT_SEMANTICS = 71 | SPVC_COMPILER_OPTION_HLSL_BIT, + SPVC_COMPILER_OPTION_INT_MAX = 0x7fffffff } spvc_compiler_option; |