Skip to content

Shading Language Reference does not describe literals #10744

@markeel

Description

@markeel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:manualIssues and PRs related to the Manual/Tutorials section of the documentationenhancementtopic:shaders

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions