Error creating render pipeline: Unsupported uniform datatype! 0x1405 #4126
Labels
api: gles
Issues with GLES or WebGL
help required
We need community help to make this happen.
type: bug
Something isn't working
Description
wgpu panics with
Unsupported uniform datatype! 0x1405
when trying to create a render pipeline that takes a u32 as a push constant. This happens inside a struct or when using the u32 directlyRepro steps
Use a
u32
as a shader push constant:This is what initially triggered the panic for me.
Expected vs observed behavior
There is no panic and the render pipeline is created properly
Extra materials
0x1405 corresponds with GL_UNSIGNED_INT, according to the documentation. The panic happens in a match statement to get the byte size of a uniform data type, perhaps GL_UNSIGNED_INT was forgotten about?
Backtrace:
Platform
Host: Apple Inc. MacBookPro11,4
Processor: Intel® Core™ i7-4980HQ × 8
GPU: Intel® Iris® Pro Graphics P5200 (HSW GT3)
Linux Kernel: Linux 6.4.12-1-MANJARO
The text was updated successfully, but these errors were encountered: