Skip to content

Commit

Permalink
fix wgpu get dimension bug (#21173)
Browse files Browse the repository at this point in the history
Co-authored-by: Jerry.Zhuang <[email protected]>
  • Loading branch information
xdestiny110 and Jerry.Zhuang authored Jan 25, 2024
1 parent ddd6176 commit b8b8775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b8b8775

Please sign in to comment.