Fix: Metal validation error when shader has no uniforms #105796

Merged
Jeroen Bakker merged 2 commits from Jason-Fielder/blender:MetalNullUniforms_Fix into blender-v3.5-release 2023-03-16 08:10:48 +01:00

2 Commits

Author SHA1 Message Date
Jason Fielder e3ca95bfab Merge branch 'blender-v3.5-release' into MetalNullUniforms_Fix 2023-03-15 15:12:36 +01:00
Michael Parkin-White 347ab74aab Fix: Metal validation error when shader has no uniforms
Metal buffer binding validation would trigger an error
when a given shader had an empty PushConstantBlock.
This patch removes the default uniform code gen if
no uniforms are present, to avoid any possible issues
with buffers being bound to a shader where the destination
data block is size zero.

Authored by Apple: Michael Parkin-White
2023-03-14 16:52:06 +00:00