Is there some planned update to TMP in the near future to make it more compatible with HDRP? Most of the shaders don’t work, and those that do (Distance Field) aren’t compatible with HDRP’s SRP Batcher.
Updating of the shaders and overall improvements related to compatibility with SRP is something that I need to look into when time permits.
I started exploring providing some base templates of SDF shaders in Shader Graph which would indirectly provide support for SRP but also make it possible for users to implement their own modified versions of those shaders. No ETA on when I will be able to release something but it is certainly possible to implement SDF shaders in Shader Graph with custom nodes.
In terms of the SRP Batcher, that is something I need to get familiar with.
You can modify the TMP shaders yourself to make them compatible.
You have to move all properties into a CBUFFER.
I.e. TMPro_Properties.cginc looks likes this:
CBUFFER_START(UnityPerMaterial)
uniform half4 _FaceColor; // RGBA : Color + Opacity
uniform half4 _OutlineColor; // RGBA : Color + Opacity
…
…
CBUFFER_END
There are many properties and I am not sure if that is a performance hit, so while updating I stripped out what we don’t need (Which was about 90% of it in our case)