(shape: number[], value: number)
| 25 | customUniforms = [{name: 'value', type: 'float' as UniformType}]; |
| 26 | |
| 27 | constructor(shape: number[], value: number) { |
| 28 | this.variableNames = ['x']; |
| 29 | this.outputShape = shape; |
| 30 | |
| 31 | this.userCode = ` |
| 32 | void main() { |
| 33 | // Input can be obtained from uniform value. |
| 34 | setOutput(value); |
| 35 | } |
| 36 | `; |
| 37 | } |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected