Skip to content

HGI Shader errors are commonly logged with line numbers but the injected code make it impossible to know reconsile #4048

@DuncanHopkinsFoundry

Description

@DuncanHopkinsFoundry

When a shader fails to compile, the driver normally gives errors that include line numbers.

As the shader is data driven, via the code generation, it is impossible/really-hard to figure out which code the line numbers relate to.
This is worse if the code being referred to is part of the injected code, as it is not always easy to work out what code that happens to be.

Outputting the whole shader submitted to the driver when there is an error would fix this.

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