Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ShaderConstantType

enumeration

Description

Options for the shader constant value type.

Properties

VectorThe shader constant is a vector or a scalar (a vector with one column). The related ConstantInfo stores the number of columns.
MatrixThe shader constant is a matrix. The related ConstantInfo stores the number of rows and columns.
StructThe shader constant is a struct. The related ConstantInfo stores the struct's size and members.