기술 자료

Unity Engine

Unity Engine

ShaderData.SpecializationConstantInfo

Provides information about a shader specialization constant value.
읽는 시간 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).