Steps to reproduce:
1. Create a new VFX Graph
2. Add a Custom HLSL block
3. Open the HLSL code editor by clicking on the edit button
4. Copy / paste the function below:
Actual results:
The VFX does not compile (the int type is misinterpreted as in access modifier)
Expected results:
The VFX compiles fine
Reproducible with versions:
6000.01f1
Not reproducible with versions:
Can’t test with versions:
2022.x and 2021.x, the feature did not exist
Tested on (OS):
Windows, but should not be OS dependent.
Notes:
At least, there's an error feedback in that case, but the message is not really accurate.