Search Issue Tracker

Active

Votes

0

Found in

6000.0.57f1

6000.2.4f1

6000.3.0b1

Issue ID

UUM-116688

Regression

No

VFX Graph compilation fails when Custom HLSL starts with multiple "//" comment lines

-

Reproduction steps:
1. Open the attached “IN-114004.zip” project
2. From the Project window, double-click on the “BuggeddSystem.vfx” asset
3. In the Visual Effect Graph window, click the Save icon
4. Observe the Console

Expected result: No errors
Actual result: “Shader error in '[BuggeddSystem] [Simple Loop] Initialize Particles': syntax error: unexpected token ')' at kernel CSMain at BuggeddSystem.vfx(140) (on d3d11)” error

Reproducible with: 2023.3.0a2, 6000.0.57f1, 6000.2.4f1, 6000.3.0b1

Reproducible on: Windows 11
Not reproducible on: no other environments tested

Notes:
- Issue does not reproduce with multi‑line /* */ comments or triple‑slash /// comments, only with double‑slash // comments
- The generated code gets an extra parenthesis and line break at the end of the function declaration, which makes the code not compile at all

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.