CustomStencil not working on Mac

Hey folks,
today I was playing around with the newly added CustomStencil on my Mac and initially I thought it was broken or I was doing something wrong because nothing was showing up in my PP material nor in the Visualization Buffer. Then I tested it on PC and worked perfectly fine.

I’m testing using the exact same project and the exact same ProjectSettings (r.CustomDepth=3). This is easy to reproduce as the Custom Stencil Visualization Buffer is completely black on Mac, while on PC it correctly shows the different colored meshes with the respective numbers.

I’m running UE4 4.9, on a Retina, Mid 2012 (NVIDIA GeForce GT 650M) with OS X Yosemite 10.10.5.

Hi vernocchi -

Thank you for your report. I was able to reproduce this issue and have entered a report regarding it, for reference UE-21018. As we investigate an appropriate solution, I will keep you informed here.

Eric Ketchum

Unfortunately it is not possible to support custom stencil on Mac OS X at this time. For OpenGL to be able sample both depth and stencil components from a depth/stencil surface requires GL_ARB_texture_view which Apple’s OpenGL does not provide.

Replying for tracking and backlog purposes. It now works correctly on 4.11 with Metal.