Version: 2022.1

Pass

class in UnityEditor

切换到手册

描述

此类描述子着色器的通道。

变量

Name此通道的名称(可能为空)。
SourceCode此通道的源代码。

公共函数

CompileVariantCompiles a shader variant for this shader pass and returns its bytecode and resource layout.
FindTagValueSearches for the tag specified by tagName on this SubShader and returns the value of the tag.
HasShaderStageChecks whether this pass includes a shader stage.
PreprocessVariantPreprocesses a shader variant for this shader pass and returns the preprocessed code.