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 translator does not fully support complex control flow statements such as switch statements with case labels, nested loops, or break and continue keywords in certain contexts. This limitation can lead to incomplete or incorrect translation of shaders using advanced control flow logic.
Steps to Reproduce:
Write an HLSL shader with a switch statement or nested loops.
Translate the shader using CrossGL.
Observe translation failures or incorrect outputs.
Expected Behavior:
The translator should handle all standard control flow statements, preserving their logic in the target shader language.
Actual Behavior:
The translator either generates incomplete code, skips parts of the control flow, or fails with a parsing error.
Environment Details:
OS: Windows 10
DirectX Version: 12
Python Version: 3.10
Additional Context:
The issue likely originates from parser.py, which has limited handling of control flow constructs.
Supporting complex control flow is crucial for shaders used in dynamic rendering or game engines.
The text was updated successfully, but these errors were encountered:
Description:
The translator does not fully support complex control flow statements such as switch statements with case labels, nested loops, or break and continue keywords in certain contexts. This limitation can lead to incomplete or incorrect translation of shaders using advanced control flow logic.
Steps to Reproduce:
Write an HLSL shader with a switch statement or nested loops.
Translate the shader using CrossGL.
Observe translation failures or incorrect outputs.
Expected Behavior:
The translator should handle all standard control flow statements, preserving their logic in the target shader language.
Actual Behavior:
The translator either generates incomplete code, skips parts of the control flow, or fails with a parsing error.
Environment Details:
OS: Windows 10
DirectX Version: 12
Python Version: 3.10
Additional Context:
The issue likely originates from parser.py, which has limited handling of control flow constructs.
Supporting complex control flow is crucial for shaders used in dynamic rendering or game engines.
The text was updated successfully, but these errors were encountered: