docs/android/dokka/filament-android/com.google.android.filament/-engine/-config/-shader-language/index.md
//filament-android/com.google.android.filament/Engine/Config/ShaderLanguage
[main]
enum ShaderLanguage
Sets a preferred shader language for Filament to use. The Metal backend supports two shader languages: MSL (Metal Shading Language) and METAL_LIBRARY (precompiled .metallib). This option controls which shader language is used when materials contain both. By default, when preferredShaderLanguage is unset, Filament will prefer METAL_LIBRARY shaders if present within a material, falling back to MSL. Setting preferredShaderLanguage to ShaderLanguage::MSL will instead instruct Filament to check for the presence of MSL in a material first, falling back to METAL_LIBRARY if MSL is not present. When using a non-Metal backend, setting this has no effect.
| DEFAULT | [main] |
| DEFAULT | |
| MSL | [main] |
| MSL | |
| METAL_LIBRARY | [main] |
| METAL_LIBRARY |
| Name | Summary |
|---|---|
| valueOf | [main] |
| open fun valueOf(name: String): Engine.Config.ShaderLanguage | |
| Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) | |
| values | [main] |
| open fun values(): Array<Engine.Config.ShaderLanguage> | |
| Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants. |