Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShaderData.SpecializationConstantInfo

Provides information about a shader specialization constant value.
Read time 1 minuteLast updated 13 days ago

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).