EEVEE-Next: Resolve compilation errors in Metal #106219

Merged
Jeroen Bakker merged 8 commits from Jason-Fielder/blender:MetalEEVEENext_shaderCompilation into main 2023-04-20 08:03:42 +02:00

8 Commits

Author SHA1 Message Date
Clément Foucault e629d88702 Merge branch 'main' into MetalEEVEENext_shaderCompilation 2023-04-19 18:21:17 +02:00
Michael Parkin-White 4378cdec06 Merge branch 'main' into MetalEEVEENext_shaderCompilation 2023-04-17 23:00:21 +02:00
Michael Parkin-White 6aa0011068 Host changes for ViewCullingData refactor 2023-04-17 21:59:16 +01:00
Michael Parkin-White d647aa9791 Move break inside code block 2023-04-17 16:50:48 +01:00
Michael Parkin-White 39ceab2071 Address feedback. Remove Metal constructors and
use struct member population for shapes.

Remove DEVICE_OUT and DEVICE_OUT_ARRAY, refactor
ViewCullingData to allow full struct copy to avoid any additional
overhead from removing device pointer modification, as device
data now copied into local variable for modification, before writing
back to device memory.
2023-04-17 15:11:14 +01:00
Michael Parkin-White a036458c87 Merge branch 'main' into MetalEEVEENext_shaderCompilation 2023-04-17 14:55:37 +02:00
Michael Parkin-White 6f95280258 Merge branch 'main' into MetalEEVEENext_shaderCompilation 2023-04-17 13:40:40 +01:00
Michael Parkin-White d9a52b7bb6 EEVEE-Next: Resolve compilation errors in Metal.
Shader source requires explicit conversions and shader address
space qualifers in certain places in order to compile for Metal.

We also require constructors for a number of default struct types.

Authored by Apple: Michael Parkin-White

Ref #96261
2023-03-28 14:06:32 +01:00