(
outShape: number[], type: DataType, textureFormat: GPUTextureFormat)
| 34 | size = true; |
| 35 | |
| 36 | constructor( |
| 37 | outShape: number[], type: DataType, textureFormat: GPUTextureFormat) { |
| 38 | this.outputShape = outShape; |
| 39 | this.dispatchLayout = flatDispatchLayout(this.outputShape); |
| 40 | this.dispatch = computeDispatch( |
| 41 | this.dispatchLayout, this.outputShape, this.workgroupSize); |
| 42 | this.type = type; |
| 43 | this.textureFormat = textureFormat; |
| 44 | this.shaderKey = `draw_${type}_${textureFormat}`; |
| 45 | } |
| 46 | |
| 47 | getUserCode(): string { |
| 48 | let calculateResult; |
nothing calls this directly
no test coverage detected