1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Allow usage of discard inside custom shader functions

This commit is contained in:
Yuri Rubinsky
2024-06-25 15:39:21 +03:00
committed by Chaosus
parent 04692d83cb
commit ad7e7a51b2
2 changed files with 18 additions and 8 deletions

View File

@@ -934,7 +934,7 @@ private:
const char *text;
uint32_t flags;
const Vector<String> excluded_shader_types;
const Vector<String> functions;
const Vector<String> excluded_functions;
};
static const KeyWord keyword_list[];
@@ -1150,6 +1150,7 @@ private:
const HashMap<StringName, FunctionInfo> *stages = nullptr;
bool is_supported_frag_only_funcs = false;
bool is_discard_supported = false;
bool _get_completable_identifier(BlockNode *p_block, CompletionType p_type, StringName &identifier);
static const BuiltinFuncDef builtin_func_defs[];