Fix shader crash when using boolean type for vertex->fragment varyings

This commit is contained in:
Yuri Rubinsky
2022-12-22 23:19:30 +03:00
parent c547c4ef59
commit f28348fc5c
3 changed files with 40 additions and 2 deletions

View File

@ -247,6 +247,7 @@ public:
enum DataInterpolation {
INTERPOLATION_FLAT,
INTERPOLATION_SMOOTH,
INTERPOLATION_DEFAULT,
};
enum Operator {
@ -774,6 +775,7 @@ public:
static bool is_token_arg_qual(TokenType p_type);
static DataPrecision get_token_precision(TokenType p_type);
static String get_precision_name(DataPrecision p_type);
static String get_interpolation_name(DataInterpolation p_interpolation);
static String get_datatype_name(DataType p_type);
static String get_uniform_hint_name(ShaderNode::Uniform::Hint p_hint);
static String get_texture_filter_name(TextureFilter p_filter);