skia2/resources/sksl/inliner/InlinerAvoidsVariableNameOverlap.sksl

17 lines
232 B
Plaintext
Raw Normal View History

inline half2 InlineB(half2 tmp)
{
half2 reusedName = tmp - 1;
return reusedName;
}
inline half2 InlineA()
{
half2 reusedName = half2(1, 2);
return InlineB(reusedName);
}
half4 main()
{
return InlineA().xyxy;
}