文档

Unity Engine


Unity Engine


textureSlotCount

The maximum number of textures that UI Toolkit can bind to the shader at once.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.