Version: 2022.1
言語: 日本語

SystemInfo.hasDynamicUniformArrayIndexingInFragmentShaders

マニュアルに切り替える
public static bool hasDynamicUniformArrayIndexingInFragmentShaders ;

説明

Returns true when the GPU has native support for indexing uniform arrays in fragment shaders without restrictions.

Some OpenGL ES 2 GPUs do not support indexing uniform arrays in fragment shaders using arbitrary variables. The OpenGL ES 2 GLSL specification requires only indexing by constants, for-loop counters and combinations of those in fragment shaders. Support for indexing using other variables is not guaranteed. The generated shader code handles these differences by providing wrappers for each of the indexed arrays used in the shader. The wrappers provide two code paths, one indexing the array directly, and another emulating indexing using branching. When running on a device, the shader compiler selects the correct code path depending on the device capabilities. This flag provides a possibility to select a simpler shader when running on devices that lack native support for indexing uniform arrays in fragment shaders using arbitrary variables.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961