(
numIndices: number, depth: number, onValue: number, offValue: number)
| 26 | seedLoc: WebGLUniformLocation; |
| 27 | |
| 28 | constructor( |
| 29 | numIndices: number, depth: number, onValue: number, offValue: number) { |
| 30 | this.outputShape = [numIndices, depth]; |
| 31 | |
| 32 | this.userCode = ` |
| 33 | void main() { |
| 34 | ivec2 coords = getOutputCoords(); |
| 35 | int index = round(getIndices(coords.x)); |
| 36 | setOutput(mix(float(${offValue}), float(${onValue}), |
| 37 | float(index == coords.y))); |
| 38 | } |
| 39 | `; |
| 40 | } |
| 41 | } |
nothing calls this directly
no outgoing calls
no test coverage detected