Skip to content

Allow unused registers to be output to reflection #5105

@Nielsbishere

Description

@Nielsbishere

When compiling, the compiler will detect unused registers and kick them. This is great to be able to check what is actually used by the shader, but unfortunately that also prevents us from having stable shader reflection. If the shader artist connects a variable that is now compiled out, it would break their workflow. And if another variable is now not compiled out they'll have to connect it again. It would be great if O0 or a flag to avoid stripping this is available. Because right now we rely on manually tokenizing and parsing the entire file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Triaged

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions