a16bdc1f66
Change-Id: Ief2a60fccdffcb8a0cf785a5adcca5d3e1172b49 Bug: skia:10549 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344298 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
8 lines
123 B
GLSL
8 lines
123 B
GLSL
int factorial(int x) {
|
|
return (x <= 1) ? 1 : x * factorial(x - 1);
|
|
}
|
|
|
|
half4 main() {
|
|
return half4(factorial(7));
|
|
}
|