---
title: Examples of GPU instancing shaders in the Built-In Render Pipeline
product: Unity Editor
version: '6000.6'
latest_version: '7000.0'
status: This page documents version 6000.6. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.6/manual/analysis/graphics-performance-profiling/birp/gpu-instancing-shader/samples
latest_url: https://docs.unity.com/en-us/engine/7000.0/manual/analysis/graphics-performance-profiling/birp/gpu-instancing-shader/samples.md
last_updated: 2026-09-14
generated_at: 2026-11-12T08:20:52.961Z
locale: en-us
---

# Examples of GPU instancing shaders in the Built-In Render Pipeline

> Examples of an HLSL shader and a Surface Shader that support GPU instancing.

> **Important:**
>
> The Built-In Render Pipeline is deprecated and will be made obsolete in a future release.
>
> It remains supported, including bug fixes and maintenance, through the full Unity 6.7 LTS lifecycle.
>
> For more information on migration, refer to [Migrating from the Built-In Render Pipeline to the Universal Render Pipeline](https://docs.unity3d.com/Manual/urp/upgrading-from-birp.html) and [Render pipeline feature comparison](https://docs.unity3d.com/Manual/render-pipelines-feature-comparison.html).

Examples of an HLSL shader and a Surface Shader that support GPU instancing.

| **Page**                                                                                                                                                                                     | **Description**                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [Example of an HLSL shader that supports GPU Instancing](/engine/6000.6/manual/analysis/graphics-performance-profiling/birp/gpu-instancing-shader/samples/vertex-fragment-shader-example.md) | An example of an instanced vertex and fragment shader with different color values for each instance.  |
| [Example of a Surface Shader that supports GPU Instancing](/engine/6000.6/manual/analysis/graphics-performance-profiling/birp/gpu-instancing-shader/samples/surface-shader-example.md)       | An example of a Surface Shader with different color values for each instance.                         |
| [Example of changing per-instance data at runtime](/engine/6000.6/manual/analysis/graphics-performance-profiling/birp/gpu-instancing-shader/samples/change-data.md)                          | An example of using `MaterialPropertyBlock` objects to set the color property of an instanced shader. |
