# Renderscript

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


```
interface Renderscript
```

<br />

*** ** * ** ***

Build-time properties for renderscript inside a `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Component`.

This is accessed via `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#renderscript()` or `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/LibraryVariant#renderscript()`

## Summary

| ### Public properties |
|---|---|
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Renderscript#ndkModeEnabled()` Returns the renderscript NDK mode. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Renderscript#optimLevel()` |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Renderscript#supportModeBlasEnabled()` Returns the renderscript BLAS support mode. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Renderscript#supportModeEnabled()` Returns the renderscript support mode. |

## Public properties

### ndkModeEnabled

Added in 7.0.0

```
val ndkModeEnabled: Property<Boolean>
```

Returns the renderscript NDK mode.

### optimLevel

Added in 7.0.0

```
val optimLevel: Property<Int>
```

### supportModeBlasEnabled

Added in 7.0.0

```
val supportModeBlasEnabled: Property<Boolean>
```

Returns the renderscript BLAS support mode.

### supportModeEnabled

Added in 7.0.0

```
val supportModeEnabled: Property<Boolean>
```

Returns the renderscript support mode.