-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Editor crashes when defining two arrays who is lengths are defined of two constants where one is dependent on the other. #93387
Comments
I did some tests trying to reproduce this crash and the result:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested versions
System information
Godot v4.2.1.stable.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 SUPER (NVIDIA; 31.0.15.5134) - AMD Ryzen 5 5600G with Radeon Graphics (12 Threads)
Issue description
When creating a global constant integer A in a shader, then creating another one named B defined upon A and lastly
defining an array with length B, the editor crashes. The time it takes to crash varies from instantaneously to a few seconds.
`
const int A = 1;
const int B = A + 1;
int[B] array;
`
Steps to reproduce
`
shader_type spatial;
const int A = 1;
const int B = A + 1;
int[B] array;
`
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: