playcanvas / engine

Powerful web graphics runtime built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.73k stars 1.36k forks source link

Failed to create texture in webgpu when using certain compressed textures #7098

Closed MAG-AdrianMeredith closed 2 weeks ago

MAG-AdrianMeredith commented 2 weeks ago

Description

playcanvas.mjs:43833 TypeError: Failed to execute 'createTexture' on 'GPUDevice': Failed to read the 'format' property from 'GPUTextureDescriptor': Required member is undefined. at WebgpuTexture.create (playcanvas.mjs:8698:1) at new WebgpuTexture (playcanvas.mjs:8675:1) at WebgpuGraphicsDevice.createTextureImpl (playcanvas.mjs:10793:1) at new Texture (playcanvas.mjs:5388:1) at Ktx2Parser.open (playcanvas.mjs:77262:1) at TextureHandler.open (playcanvas.mjs:77789:1) at Array.eval (playcanvas.mjs:43767:1) at BasisQueue.handleResponse (playcanvas.mjs:76834:1) at Worker.eval (playcanvas.mjs:76846:1)

This is due to a missing entry for PIXELFORMAT_ASTC_4x4_SRGB.