You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The current implementation of the translator does not fully support all HLSL/Cg preprocessor directives (e.g., #ifdef, #elif, #undef). This results in translation failures or incorrect handling of conditional compilation blocks, which are essential for writing modular and reusable shader code.
Steps to Reproduce:
Write an HLSL shader using a preprocessor directive such as #elif or #undef.
Translate the shader using CrossGL.
Observe that the translation fails or generates incorrect code.
Expected Behavior:
The translator should correctly interpret and translate all standard preprocessor directives to the target shading language.
Actual Behavior:
The translation either fails or skips conditional blocks, leading to broken or incomplete output shaders.
Environment Details:
OS: macOS Ventura 13.2
DirectX Version: 11
Python Version: 3.9
Additional Context:
The lexer.py and parser.py files currently handle basic directives (#define, #include, #ifdef), but directives like #elif and #undef are not supported.
This issue hinders developers from using flexible, conditional shader logic effectively.
The text was updated successfully, but these errors were encountered:
Description:
The current implementation of the translator does not fully support all HLSL/Cg preprocessor directives (e.g., #ifdef, #elif, #undef). This results in translation failures or incorrect handling of conditional compilation blocks, which are essential for writing modular and reusable shader code.
Steps to Reproduce:
Write an HLSL shader using a preprocessor directive such as #elif or #undef.
Translate the shader using CrossGL.
Observe that the translation fails or generates incorrect code.
Expected Behavior:
The translator should correctly interpret and translate all standard preprocessor directives to the target shading language.
Actual Behavior:
The translation either fails or skips conditional blocks, leading to broken or incomplete output shaders.
Environment Details:
OS: macOS Ventura 13.2
DirectX Version: 11
Python Version: 3.9
Additional Context:
The lexer.py and parser.py files currently handle basic directives (#define, #include, #ifdef), but directives like #elif and #undef are not supported.
This issue hinders developers from using flexible, conditional shader logic effectively.
The text was updated successfully, but these errors were encountered: