-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add sampler2DArray as shader global due to strict class selection #81008
Labels
Milestone
Comments
We might need to allow some more subclasses to be used or adjust the type checks if they are too strict. Meanwhile, you might be able to use |
FireCatMagic
changed the title
Cannot add sampler2DArray as shader global due to Texture2D Array import compression
Cannot add sampler2DArray as shader global due to strict class selection
Aug 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Godot version
v4.1.1.stable
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 750 Ti (NVIDIA; 31.0.15.3623) - 12th Gen Intel(R) Core(TM) i5-12400F (12 Threads)
Issue description
When creating a Shader Global of type sampler2DArray:
The expected resource is Texture2DArray.
Using an imported Texture2DArray does not work as they are actually imported as a CompressedTexture2DArray, and to my knowledge a normal Texture2DArray is impossible to create
Steps to reproduce
Expected behavior: sampler2DArray lets you select both Texture2DArray and CompressedTexture2DArray resources
All of the following types should be able to used in this field:
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: