# Shaders

# Shaders

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/Shaders.kt+class:com.android.build.api.dsl.Shaders)  
Added in 4.2.0  

<br />

```
interface Shaders
```

<br />

*** ** * ** ***

Options for configuring scoped shader options.

## Summary

|                             ### Public functions                             |
|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [glslcArgs](https://developer.android.com/reference/tools/gradle-api/8.6/com/android/build/api/dsl/Shaders#glslcArgs(kotlin.Array))`(vararg options: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Adds options to the list of glslc args.                                                                                                                          |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [glslcScopedArgs](https://developer.android.com/reference/tools/gradle-api/8.6/com/android/build/api/dsl/Shaders#glslcScopedArgs(kotlin.String,kotlin.Array))`(key: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, vararg options: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Adds options to the list of scoped glsl args. |

|                                                                                                                             ### Public properties                                                                                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`                                                                                  | [glslcArgs](https://developer.android.com/reference/tools/gradle-api/8.6/com/android/build/api/dsl/Shaders#glslcArgs()) The list of glslc args.                   |
| [ListMultimap](https://guava.dev/releases/18.0/api/docs/com/google/common/collect/ListMultimap.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [scopedGlslcArgs](https://developer.android.com/reference/tools/gradle-api/8.6/com/android/build/api/dsl/Shaders#scopedGlslcArgs()) The list of scoped glsl args. |

## Public functions

### glslcArgs

Added in 4.2.0  

```
fun glslcArgs(vararg options: String): Unit
```

Adds options to the list of glslc args.  

### glslcScopedArgs

Added in 4.2.0  

```
fun glslcScopedArgs(key: String, vararg options: String): Unit
```

Adds options to the list of scoped glsl args.  

## Public properties

### glslcArgs

Added in 4.2.0  

```
val glslcArgs: MutableList<String>
```

The list of glslc args.  

### scopedGlslcArgs

Added in 4.2.0  

```
val scopedGlslcArgs: ListMultimap<String, String>
```

The list of scoped glsl args.