UE5.8 Rendering issues with forward shading and MSAA enabled on Apple Silicon M2

Summary

No meshes rendered if forward shading and MSAA enabled on Apple Silicon M2.

What Type of Bug are you experiencing?

Rendering (Graphics / Niagara)

Steps to Reproduce

Create a new project from VR template on a mac with Apple Silicon M2, or enable forward shading with MSAA on any existing project on this Apple system

Expected Result

Meshes in Editor, PIE mode and standalone game should be rendered as usual

Observed Result

Affects Versions

5.8

Platform(s)

Mac

Video

see ‘observed result’

For crash reports, include your callstack

N/A

Additional Notes

This appears to affect only Apple Silicon CPUs older than the M3. It helps to disable forward shading in the project settings or to set “r.MSAACount = 1” in the console, which as far as I know disables MSAA.

I was able to fix the issue by using AI and recompiling the code from the GitHub source code. But, it would be nice though if a fix were included in the next update of the editor.

The AI modified the following file: Engine/Source/Runtime/Apple/MetalRHI/Private/MetalTexture.cpp