Skip to content

Commit b8b8775

Browse files
xdestiny110Jerry.Zhuang
and
Jerry.Zhuang
authored
fix wgpu get dimension bug (#21173)
Co-authored-by: Jerry.Zhuang <[email protected]>
1 parent ddd6176 commit b8b8775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_webgpu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ var LibraryWebGPU = {
20692069

20702070
wgpuTextureGetDimension: (textureId) => {
20712071
var texture = WebGPU.mgrTexture.get(textureId);
2072-
return texture.dimension;
2072+
return WebGPU.TextureDimension.indexOf(texture.dimension);
20732073
},
20742074

20752075
wgpuTextureGetFormat: (textureId) => {

0 commit comments

Comments
 (0)