diff --git a/src/library_webgpu.js b/src/library_webgpu.js index 50e440834100e..be43a09e22f95 100644 --- a/src/library_webgpu.js +++ b/src/library_webgpu.js @@ -2069,7 +2069,7 @@ var LibraryWebGPU = { wgpuTextureGetDimension: (textureId) => { var texture = WebGPU.mgrTexture.get(textureId); - return texture.dimension; + return WebGPU.TextureDimension.indexOf(texture.dimension); }, wgpuTextureGetFormat: (textureId) => {