Make a URP shader compatible with the SRP Batcher
Ensure that a URP shader is SRP Batcher compatible.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
To ensure that a Shader is SRP Batcher compatible:
- Declare all Material properties in a single CBUFFER called .
UnityPerMaterial - Declare all built-in engine properties, such as or
unity_ObjectToWorld, in a single CBUFFER calledunity_WorldTransformParams.UnityPerDraw
For more information on the SRP Batcher, refer to the documentation on the Scriptable Render Pipeline (SRP) Batcher.