kainino0x/gpuinfo-vulkan-query

`maxVertexOutputComponents` and `maxFragmentInputComponents` limits are too low

Closed this issue · 3 comments

The WebGPU spec requires maxInterStageShaderVariables to be at least 16; that means that maxVertexOutputComponents and maxFragmentInputComponents should be at least 64.

add_min_limit('maxVertexOutputComponents', 60)
add_min_limit('maxFragmentInputComponents', 60)

You're right, this check predates all the work we did to figure out what we actually needed on Vulkan:
gpuweb/gpuweb#1962 (comment)

Fortunately it doesn't make any difference because the Vulkan spec requires both of these values to be at least 64 anyway:
https://registry.khronos.org/vulkan/specs/1.3-extensions/html/chap45.html#limits-minmax

Just wanted to make sure it's 1:1 with the spec.

Btw, thanks for putting together this script!
I can imagine it was instrumental for the spec and also quite useful for implementors.

Glad you appreciate it! It wasn't just me, Corentin did the initial work on it :). It has been and continues to be super useful.