Skip to content

DebugTypeComposite Doesn't Follow NonSemantic Debug Info Spec For Opaque Type #4063

@qingyuanzNV

Description

@qingyuanzNV

As per NonSemantic Debug Info specification in https://github.com/KhronosGroup/SPIRV-Registry/blob/main/nonsemantic/NonSemantic.Shader.DebugInfo.100.asciidoc#DebugTypeComposite, we have the following quote:

Note: To represent a source language opaque type, this instruction must have no Members operands, Size operand must be DebugInfoNone, and Name must start with @ to avoid clashes with user defined names.

However, GLSLANG is prepending @ sign to linkage name instead of name. TBH, I think GLSLANG's behavior makes sense since Name should reflect the real identifier in the source program while linkage name could have arbitrary mangling to carry additional information. However, it is a contradiction with the spec nonetheless. Do we want to fix that in GLSLANG? Or should we try to update the specification? Please help share your comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions