Skip to content

Feature Request: support character literals like HLSL does #6984

@Atrix256

Description

@Atrix256

Hello!

When using slang to convert HLSL shaders to WGSL, slang complains when using character literals such as '1'.

Character literals are helpful when making debugging functionality, like printf from a shader.

HLSL is just fine with these character literals and converts them into their integral ascii value.

Could we have the same functionality in slang?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions