GPU: Fix Potential Error in Builtin Resolution. #105127

Merged

2 Commits

Author SHA1 Message Date
Jeroen Bakker 8b64810ded Updated the comment. 2023-02-23 14:28:11 +01:00
Jeroen Bakker 268e3811e0 GPU: Fix Potential Error in Builtin Resolution.
When using ShaderCreateInfo with builtin uniform(blocks) there are
cases where the current implementation could not find an existing
block. The reason is that it uses name matching and name matching
requires that the shader inputs are sorted based on the name hash.

This change fixes this by first for the sorting of the shader
inputs before resolving the builtins.
2023-02-23 14:18:49 +01:00