Unity Issue Tracker - Custom HLSL Operator with two output parameters function duplicates its code
Fixed
UUM-83676
Custom HLSL Operator with two output parameters function duplicates its code
Unity: Visual Effects
VFX
Fixed
6.1.X
6.0.X
All good. It now works
Verified on build 6000.0.27f1
Steps to reproduce:
1. Create a new VFX Graph asset (use the simple loop template)
2. Open this VFX Graph
3. Add a Custom HLSL operator
4. Replace the default code by this one:
void FloatFunction(infloatvalue, outfloat a, outfloat b)
{
a = value * 2;
b = value * 3;
}
5. Connect the output a and output b to the gravity Force input (X and Y)
Actual results:
The VFX Graph do not compile because the function is duplicated