TextureSlotCount
The number of textures that UI Toolkit can bind simultaneously to the shader to reduce draw calls.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public enum TextureSlotCount
Remarks
Additional Resources: PanelSettings.textureSlotCount
Fields
Value | Description |
|---|---|
| Eight | UI Toolkit can bind up to eight textures to the shader at once. It uses three nested dynamic branches to select the appropriate texture. /// |
| Four | UI Toolkit can bind up to four textures to the shader at once. It uses two nested dynamic branches to select the appropriate texture. |
| One | UI Toolkit can bind only one texture to the shader at once. No dynamic branching is required to select the texture. |
| Two | UI Toolkit can bind up to two textures to the shader at once. It uses one dynamic branch to select the appropriate texture. |