Version: Unity 6.2 Alpha (6000.2)
Language : English
Create draw commands with the BatchRendererGroup API in URP
DOTS Instancing shaders in URP

Writing custom shaders for the BatchRendererGroup API

Resources for writing custom shadersA program that runs on the GPU. More info
See in Glossary
that support Data-Oriented Technology Stack (DOTS) Instancing, so they can be used with the BatchRendererGroup API.

Page Description
DOTS Instancing shaders Learn about the characteristics and advantages of shaders that support DOTS Instancing.
Support DOTS Instancing in a a custom shader Add defines and properties to a custom shader to make it compatible with DOTS Instancing.
Declare DOTS Instancing properties in a custom shader Declare a DOTS Instancing property block in custom shader code.
Access DOTS Instancing properties in a custom shader Use built-in macros to access DOTS Instancing properties in custom shader code.
Best practice for DOTS Instancing shaders Structure data to avoid DOTS Instancing shaders behaving in unexpected ways.
DOTS Instancing shader samples Examples of using built-in macros to access per-instance data and constant data in DOTS Instancing shaders.
DOTS Instancing shader macros reference Explore the built-in macros you can use to access DOTS Instancing properties in a custom shader.
DOTS Instancing shader functions reference Explore the built-in functions you can use to load the values of constants directly from the draw command data.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Create draw commands with the BatchRendererGroup API in URP
DOTS Instancing shaders in URP
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961