ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


Writing custom shaders for the BatchRendererGroup API

Describes the new data-oriented way shaders can load instance data.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Resources for writing custom shaders that support Data-Oriented Technology Stack (DOTS) Instancing, so they can be used with the
BatchRendererGroup
API.

Page

Description

DOTS Instancing shadersLearn about the characteristics and advantages of shaders that support DOTS Instancing.
Support DOTS Instancing in a a custom shaderAdd defines and properties to a custom shader to make it compatible with DOTS Instancing.
Declare DOTS Instancing properties in a custom shaderDeclare a DOTS Instancing property block in custom shader code.
Access DOTS Instancing properties in a custom shaderUse built-in macros to access DOTS Instancing properties in custom shader code.
Best practice for DOTS Instancing shadersStructure data to avoid DOTS Instancing shaders behaving in unexpected ways.
DOTS Instancing shader samplesExamples of using built-in macros to access per-instance data and constant data in DOTS Instancing shaders.
DOTS Instancing shader macros referenceExplore the built-in macros you can use to access DOTS Instancing properties in a custom shader.
DOTS Instancing shader functions referenceExplore the built-in functions you can use to load the values of constants directly from the draw command data.