# TextureSlotCount

> The number of textures that UI Toolkit can bind simultaneously to the shader to reduce draw calls.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum TextureSlotCount
```

## Remarks

Additional Resources: [PanelSettings.textureSlotCount](/engine/6000.3/script-reference/unityengine/uielements/panelsettings/textureslotcount.md)

## Fields

| Value                                                                                     | Description                                                                                                                                  |
| ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [Eight](/engine/6000.3/script-reference/unityengine/uielements/textureslotcount/eight.md) | 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](/engine/6000.3/script-reference/unityengine/uielements/textureslotcount/four.md)   | 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](/engine/6000.3/script-reference/unityengine/uielements/textureslotcount/one.md)     | UI Toolkit can bind only one texture to the shader at once. No dynamic branching is required to select the texture.                          |
| [Two](/engine/6000.3/script-reference/unityengine/uielements/textureslotcount/two.md)     | UI Toolkit can bind up to two textures to the shader at once. It uses one dynamic branch to select the appropriate texture.                  |
