mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Prevent using built-ins for func names in shaders
This commit is contained in:
parent
e7dd6f11ed
commit
aecc4cbc47
2 changed files with 21 additions and 3 deletions
|
|
@ -884,7 +884,7 @@ public:
|
|||
bool can_discard = false;
|
||||
bool main_function = false;
|
||||
};
|
||||
static bool has_builtin(const HashMap<StringName, ShaderLanguage::FunctionInfo> &p_functions, const StringName &p_name);
|
||||
static bool has_builtin(const HashMap<StringName, ShaderLanguage::FunctionInfo> &p_functions, const StringName &p_name, bool p_check_global_funcs = false);
|
||||
|
||||
typedef DataType (*GlobalShaderUniformGetTypeFunc)(const StringName &p_name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue