# Renderscript

# 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  

<br />

```
interface Renderscript
```

<br />

*** ** * ** ***

Build-time properties for renderscript inside a[Component](https://developer.android.com/reference/tools/gradle-api/8.7/com/android/build/api/variant/Component).

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

## Summary

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