Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShaderConstantType

Options for the shader constant value type.
Read time 1 minuteLast updated 5 days ago

Definition

public enum ShaderConstantType

Fields

Value

Description

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