diff options
author | chirsz <chirsz@foxmail.com> | 2024-07-12 12:23:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-12 09:53:52 +0530 |
commit | 01c074d1958bef0cb8076f911d46907d290c5ee8 (patch) | |
tree | 94a3563e16ec31aefb01ae09d77c9da7dac67d35 | |
parent | 7ab25dd89e593439f7b6c1d89bdd692d9c595fa5 (diff) |
fix(ext/webgpu): GPUDevice.createRenderPipelineAsync should return a Promise (#24349)
Fixes #24317
-rw-r--r-- | ext/webgpu/01_webgpu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index 338678d38..47ae9603f 100644 --- a/ext/webgpu/01_webgpu.js +++ b/ext/webgpu/01_webgpu.js @@ -1680,7 +1680,7 @@ class GPUDevice extends EventTarget { rid, ); device.trackResource(renderPipeline); - return renderPipeline; + return PromiseResolve(renderPipeline); } /** |