-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum Engine.Config.ShaderLanguageSets a preferred shader language for Filament to use.The Metal backend supports two shader languages: MSL (Metal Shading Language) andMETAL_LIBRARY (precompiled .metallib). This option controls which shader language isused when materials contain both.By default, when preferredShaderLanguage is unset, Filament will prefer METAL_LIBRARYshaders if present within a material, falling back to MSL. SettingpreferredShaderLanguage to ShaderLanguage::MSL will instead instruct Filament to checkfor the presence of MSL in a material first, falling back to METAL_LIBRARY if MSL is notpresent.When using a non-Metal backend, setting this has no effect.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULTMSLMETAL_LIBRARY
-
Method Summary
Modifier and Type Method Description static Array<Engine.Config.ShaderLanguage>values()static Engine.Config.ShaderLanguagevalueOf(String name)-
-
Method Detail
-
values
static Array<Engine.Config.ShaderLanguage> values()
-
valueOf
static Engine.Config.ShaderLanguage valueOf(String name)
-
-
-
-