()
| 46 | } |
| 47 | |
| 48 | getUserCode(): string { |
| 49 | return ` |
| 50 | fn unaryOperation(a : f32) -> f32 { |
| 51 | ${getUnaryOpString(this.op, false)} |
| 52 | } |
| 53 | ${main('index')} { |
| 54 | if (index < uniforms.size) { |
| 55 | let a = getAByOutputIndex(index); |
| 56 | setOutputAtIndex(index, unaryOperation(a)); |
| 57 | } |
| 58 | } |
| 59 | `; |
| 60 | } |
| 61 | } |
nothing calls this directly
no test coverage detected