Shading Language Reference does not describe literals #10744
Labels
area:manual
Issues and PRs related to the Manual/Tutorials section of the documentation
enhancement
topic:shaders
Your Godot version:
4.4
Issue description:
Godot 4.4 requires uint in switch statement in a .gdshader, which requires constants and/or literals declared as uint, but there is no discussion in the Godot Shading Language description about literals.
The answer is to use <decimal number>u, but that was only figured out by guessing although looking at the GLSL language definition would give a clue as well.
URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/tutorials/shaders/shader_reference/shading_language.html
The text was updated successfully, but these errors were encountered: