You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
330 B
21 lines
330 B
/*#pragma settings NoInline*/
|
|
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
float foo(float2 v) {
|
|
return v.x * v.y;
|
|
}
|
|
|
|
void bar(inout float x) {
|
|
float y[2];
|
|
y[0] = x;
|
|
y[1] = x * 2;
|
|
x = foo(float2(y[0], y[1]));
|
|
}
|
|
|
|
half4 main(float2 coords) {
|
|
float x = 10;
|
|
bar(x);
|
|
return x == 200 ? colorGreen : colorRed;
|
|
}
|