文档

Unity Engine


User Manual

Script Reference

Unity Engine


GPU Instancing in the Built-In Render Pipeline

Learn about GPU Instancing in the Built-In Render Pipeline.
阅读时间1 分钟最后更新于 1 个月前

This section contains information on how to add GPU instancing support to a custom Unity shader. It first explains the shader keywords, variables, and functions custom Unity shaders require to support GPU instancing. Then it includes examples of how to add per-instance data to both surface shaders and vertex/fragment shaders.

Render pipeline compatibility

Feature

Universal Render Pipeline (URP)

High Definition Render Pipeline (HDRP)

Custom Scriptable Render Pipeline (SRP)

Built-in Render Pipeline

Custom GPU instanced shadersNoNoNoYes

Additional resources