EEVEE Next: GLSL Metal shader type compatibility #107178

Merged
Jeroen Bakker merged 2 commits from Jason-Fielder/blender:Metal_EEVEENext_ShaderGLSLTypeCompatibility into main 2023-04-21 09:55:48 +02:00

2 Commits

Author SHA1 Message Date
Michael Parkin-White e065b31622 Resolve duplicate symbol error 2023-04-20 15:31:38 +01:00
Michael Parkin-White 25a0b3d388 EEVEE Next: GLSL Metal shader type compatibility
Apply compilation fixes for Metal compatibility.
This includes explicit type casts, packed data types
where vec3 alignment is inconsistent, constructor replacement
with factory function.

The Metal shader generator also needs knowledge of when bound
resources are fundamental data types, so
SHADOWS_TILE_DATA_PACKED must be described as uint in
ShaderCreateInfo.

Authored by Apple: Michael Parkin-White
2023-04-20 15:29:57 +01:00