This version of Unity is unsupported.

Pass

class in UnityEditor

Description

This class describes a pass of a subshader.

Properties

NameThe name of this pass (may be empty).
SourceCodeThe source code for this pass.

Public Methods

CompileVariantCompiles a shader variant for this shader pass and returns its bytecode and resource layout.
HasShaderStageChecks whether this pass includes a shader stage.
PreprocessVariantPreprocesses a shader variant for this shader pass and returns the preprocessed code.