Editor interpreting unsigned uvec
shader uniform parameters as signed
#92064
Labels
Milestone
uvec
shader uniform parameters as signed
#92064
Tested versions
Reproducible in v4.2.1-stable
System information
Godot v4.2.1.stable - macOS 14.4.1 - Vulkan (Forward+) - integrated Apple M1 - Apple M1 (8 Threads)
Issue description
The editor is refusing to let me specify integers over the 32-bit signed max for unsigned shader vector parameters. When I try to specify one over the signed max (i.e. an ARGB hexidecimal color) the editor reverts it to the signed 32-bit max. The max of an unsigned 32-bit integer field should be 4294967295, but as you can see with the steps below it's capped at the signed 32-bit limit of 2147483647.
I'm not sure if this is a wider problem with Godot using the signed Vector4i type for
uvec4
shader types (which is a problem of it's own), or if this is just an issue with how the editor is interpreting the parameter limits.Steps to reproduce
uvec2
,uvec3
, oruvec4
parameter (example using my shader):4278255360
(0xff00ff00
).Minimal reproduction project (MRP)
unsigned_shader_parameter_issue.zip
The text was updated successfully, but these errors were encountered: