Skip to content

Fix MGFX Error/Warning Line Numbers #4437

@tomspilman

Description

@tomspilman

Back in #1972 the MGFX compiler was switched over to use CppNet (https://github.com/xtravar/CppNet) for preprocessing. This was the first step towards supporting GLSL.

The problem as reported in #3853 is that CppNet does not report the correct line numbers for errors in all cases.

In particular for multi-line comments or FX files with lots of includes.

We need someone to reproduce those errors and work with or fork CppNet to fix them.

Note the SiliconStudios team uses CppNet as well with what seems like some slightly different fixes to error reporting. We should check their fork:

https://github.com/manu-silicon/CppNet

... to see if it solves our problems as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions