Spaces:
Running
Running
Update gpu.js
Browse files
gpu.js
CHANGED
|
@@ -12,7 +12,7 @@ export async function initGPU() {
|
|
| 12 |
}
|
| 13 |
}
|
| 14 |
|
| 15 |
-
export
|
| 16 |
const module = device.createShaderModule({ code });
|
| 17 |
|
| 18 |
return device.createComputePipeline({
|
|
|
|
| 12 |
}
|
| 13 |
}
|
| 14 |
|
| 15 |
+
export function createCompute(device, code) {
|
| 16 |
const module = device.createShaderModule({ code });
|
| 17 |
|
| 18 |
return device.createComputePipeline({
|