Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GraphicsStateCollection.ShaderVariant

Identifies a specific variant of a shader stored in a GraphicsStateCollection.
Read time 1 minuteLast updated 4 days ago

Definition

public struct GraphicsStateCollection.ShaderVariant

Fields

Value

Description

keywordsArray of shader keywords to use in this variant.
passIdPassIdentifier to use in this variant.
shaderShader to use in this variant.

Constructors

Constructor

Description

ShaderVariant(UnityEngine.Material,UnityEngine.Rendering.PassIdentifier)Create a ShaderVariant with the provided shader pass and keywords.
ShaderVariant(UnityEngine.Shader,UnityEngine.Rendering.PassIdentifier,UnityEngine.Rendering.LocalKeyword[])Create a ShaderVariant with the provided shader pass and keywords.