Allow compressed texture array and cubemap types in shader globals editor

This commit is contained in:
Hugo Locurcio 2024-04-25 17:36:31 +02:00
parent 780e1a5040
commit 73e4e7ef9c
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ protected:
case RS::GLOBAL_VAR_TYPE_SAMPLER2DARRAY: { case RS::GLOBAL_VAR_TYPE_SAMPLER2DARRAY: {
pinfo.type = Variant::OBJECT; pinfo.type = Variant::OBJECT;
pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE; pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE;
pinfo.hint_string = "Texture2DArray"; pinfo.hint_string = "Texture2DArray,CompressedTexture2DArray";
} break; } break;
case RS::GLOBAL_VAR_TYPE_SAMPLER3D: { case RS::GLOBAL_VAR_TYPE_SAMPLER3D: {
pinfo.type = Variant::OBJECT; pinfo.type = Variant::OBJECT;
@ -229,7 +229,7 @@ protected:
case RS::GLOBAL_VAR_TYPE_SAMPLERCUBE: { case RS::GLOBAL_VAR_TYPE_SAMPLERCUBE: {
pinfo.type = Variant::OBJECT; pinfo.type = Variant::OBJECT;
pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE; pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE;
pinfo.hint_string = "Cubemap"; pinfo.hint_string = "Cubemap,CompressedCubemap";
} break; } break;
default: { default: {
} break; } break;