Merge pull request #30457 from Chaosus/fix_not

Fix "not" shader function return type
This commit is contained in:
Rémi Verschelde 2019-07-09 16:09:00 +02:00 committed by GitHub
commit 5e495750a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1918,9 +1918,9 @@ const ShaderLanguage::BuiltinFuncDef ShaderLanguage::builtin_func_defs[] = {
{ "all", TYPE_BOOL, { TYPE_BVEC3, TYPE_VOID } },
{ "all", TYPE_BOOL, { TYPE_BVEC4, TYPE_VOID } },
{ "not", TYPE_BOOL, { TYPE_BVEC2, TYPE_VOID } },
{ "not", TYPE_BOOL, { TYPE_BVEC3, TYPE_VOID } },
{ "not", TYPE_BOOL, { TYPE_BVEC4, TYPE_VOID } },
{ "not", TYPE_BVEC2, { TYPE_BVEC2, TYPE_VOID } },
{ "not", TYPE_BVEC3, { TYPE_BVEC3, TYPE_VOID } },
{ "not", TYPE_BVEC4, { TYPE_BVEC4, TYPE_VOID } },
//builtins - texture
{ "textureSize", TYPE_IVEC2, { TYPE_SAMPLER2D, TYPE_INT, TYPE_VOID } },