文档

Unity Engine

Unity Engine

ShaderConstantType

Options for the shader constant value type.
阅读时间1 分钟最后更新于 1 个月前

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.