Is it possible to have 16-bit stencils instead of 8-bit?

Hi,
I have more than 256 meshes in level and I want to assign a unique stencil for each mesh. See images, UE4 caps max value to 255, I know stencil value is of type uint8.

Is there any work around to achieve 16-bit stencil??

Hey! Have you found a way to avoid the 256 limitation?

This is not a solution but a suggestion: You can update the C++ rendering code to increase this value. It might make the stencil buffer much heavier though.

I have an issue seeing why someone would need more than the 256 stencils. I think a shader solution is possible to achieve more results, but I would need to know more information.