textureSlotCount
The maximum number of textures that UI Toolkit can bind to the shader at once.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public TextureSlotCount textureSlotCount { get; set; }
Remarks
If the shader uses more than one texture slot, it applies dynamic branching to select the texture to read from. More texture slots can help decreasing the number of draw calls, which can improve CPU performance. However, the extra branching operations can reduce GPU performance.