(start: number[], destSize: number[])
| 32 | size = true; |
| 33 | |
| 34 | constructor(start: number[], destSize: number[]) { |
| 35 | this.outputShape = destSize; |
| 36 | this.rank = destSize.length; |
| 37 | this.dispatchLayout = flatDispatchLayout(this.outputShape); |
| 38 | this.dispatch = computeDispatch( |
| 39 | this.dispatchLayout, this.outputShape, this.workgroupSize, |
| 40 | [this.workPerThread, 1, 1]); |
| 41 | |
| 42 | this.start = start; |
| 43 | this.uniforms = `start : ${getCoordsDataType(start.length)}, `; |
| 44 | this.shaderKey = 'slice'; |
| 45 | } |
| 46 | |
| 47 | getUserCode(): string { |
| 48 | const dtype = getCoordsDataType(this.rank); |
nothing calls this directly
no test coverage detected