Loading black textures in WebGPU on AMD


Textures load as black when using an AMD RX7900XTX using WebGPU (not tested on other AMD cards, possibly same outcome) as shown in the image using Create a Simple World Series | Babylon.js Playground
Drivers version 24.12.1 (latest).

Hello and welcome :slight_smile:

Indeed there is something strange here.
On my side (Nvidia) it would load fine on WebGL2, but in WebGPU the roof is black :thinking:

Also the texture is seen as transparent 256 x 256 in the inspector, while original is 780 x 985 :

Replacing by another jpg path works though :thinking:


You tell about the problem issuing on AMD, but did you try with other GPUs ? Are you sure itā€™s hardware related ?

See my answer here, itā€™s a problem with the file itself:

This PR will fix it:

[EDIT] Iā€™m putting the PR on hold, as I noticed that the PG works in Firefox, so it could be a bug with Chrome. Iā€™ve asked Dawnā€™s devs and Iā€™m waiting for their answer.

1 Like

On my work computers it seems to be working fine, so I assumed since they all run Nvidia it could be possibly hardware related.

I had a quick look, I would say more than coming from the request header, it might come from the EXIF of the file which contains tons of Photoshop CS2 stuff (2005 ^^)

I can add that most textures from our work databases load empty as long as WebGPU is present in the project in Chromium browsers. Firefox doesnā€™t have that issue because WebGPU isnā€™t present there yet. So itā€™s not an issue with the texture of the roof itself, itā€™s more of a global issue.

Note that when I said I tested in Firefox, I really tested in Firefox nightly, which has support for WebGPU.

An issue has been created for Chromium about this:

https://issues.chromium.org/issues/384858956

1 Like