文档

Unity Engine

Unity Engine

ShaderData.SpecializationConstantInfo

Provides information about a shader specialization constant value.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Struct
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public struct ShaderData.SpecializationConstantInfo

Remarks

Specialization constants are a special type of uniform variables that are used to create shader variants at runtime. The GPU driver can then optimize the code further, knowing that the value of such a constant will never change.

Properties

Property

Description

NameThe name of this constant (Read Only).
SlotThe binding slot of this constant in the shader (Read Only).