(component: 'real'|'imag', shape: [number, number])
| 30 | component: string; |
| 31 | |
| 32 | constructor(component: 'real'|'imag', shape: [number, number]) { |
| 33 | this.outputShape = shape; |
| 34 | this.dispatchLayout = flatDispatchLayout(this.outputShape); |
| 35 | this.dispatch = computeDispatch( |
| 36 | this.dispatchLayout, this.outputShape, this.workgroupSize); |
| 37 | |
| 38 | this.component = component; |
| 39 | this.shaderKey = `fft_${component}`; |
| 40 | } |
| 41 | |
| 42 | getUserCode(): string { |
| 43 | const opString = this.component === 'real' ? |
nothing calls this directly
no test coverage detected