Getting started with BatchRendererGroup

Getting started with BatchRendererGroup

Unity User Manual 2022.1

图形

Graphics performance and profiling

BatchRendererGroup

Getting started with BatchRendererGroup

How BatchRendererGroup works

Creating a renderer with BatchRendererGroup

Getting started with BatchRendererGroup

This page explains what render pipelines and platforms support BatchRendererGroup (BRG) and explains how to set up your project to support BRG.

Requirements and compatibility

Render pipeline compatibility

The following table shows which render pipelines support BRG.

功能名称

内置渲染管线

通用渲染管线 (URP)

高清渲染管线 (HDRP)

自定义 SRP

BatchRendererGroup

是 (1)

是 (1)

是 (1)

注意:

If the project uses the SRP Batcher.

Platform compatibility

Unity supports BRG on:

Windows using DirectX 11

Windows using DirectX 12

Windows using Vulkan

通用 Windows 平台

Linux using Vulkan

macOS using Metal

iOS

Android using Vulkan

PlayStation 4

PlayStation 5

Xbox One

Xbox Series X and Xbox Series S

Nintendo Switch

Google Stadia

Setting up your project for BatchRendererGroup

Before you use BRG, your project must support it. BRG requires your project to:

Use the SRP Batcher. To enable the SRP Batcher, see Using the SRP Batcher.

Keep BRG shader variants. To do this, select Edit > Project Settings > Graphics, and set BatchRendererGroup variants to Keep all.

If your project uses URP, it’s best practice to disable the Strip Unused Variants Global Setting. This helps to avoid problems with Unity stripping necessary DOTS Instancing variants. For more information, see DOTS Instancing shaders. To find this setting, select Edit > Project Settings > URP Global Settings.

Allow unsafe code. To do this, enable the Allow ‘unsafe’ Code Player Setting.

Note: The BatchRendererGroup uses DOTS Instancing shaders, but it doesn’t require any DOTS packages. The name reflects the new data-oriented way to load instance data, and also helps with backward compatibility with existing Hybrid Renderer compatible shaders.

For information on how to use BRG to create a basic renderer, see Creating a renderer with BatchRendererGroup.

How BatchRendererGroup works

Creating a renderer with BatchRendererGroup

相关推荐

梦网科技(002123)基础信息梳理。 一、公司基本情况总部位于深圳,并在北京、上海、香港等20多个地区设有分支机构,业务覆盖全球市场。实际控制人为个人,定位为...
大3匹空调适合多大面积?大3匹空调的适用面积分析
365账号无法登陆

大3匹空调适合多大面积?大3匹空调的适用面积分析

📅 07-06 👁️ 7440
野猪害怕的气味,惧怕火药味、老虎及其它野兽的气味
365账号无法登陆

野猪害怕的气味,惧怕火药味、老虎及其它野兽的气味

📅 07-01 👁️ 8853