textureSlotCount
The maximum number of textures that UI Toolkit can bind to the shader at once.
Read time 1 minuteLast updated 10 days ago
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.