# Allocation.MipmapControl

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# MipmapControl

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/renderscript/Allocation.MipmapControl "View this page in Java")  

```
class MipmapControl
```

|---|---|------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                    |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.renderscript.Allocation.MipmapControl](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#)\> ||
|   | ↳ | [android.renderscript.Allocation.MipmapControl](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#) |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [Allocation.MipmapControl.MIPMAP_FULL](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_FULL),[Allocation.MipmapControl.MIPMAP_NONE](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_NONE),[Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_ON_SYNC_TO_TEXTURE) |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| | [Allocation.MipmapControl.MIPMAP_FULL](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_FULL)                             | A full mipmap chain will be created in script memory.                                                          | | [Allocation.MipmapControl.MIPMAP_NONE](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_NONE)                             | No mipmaps will be generated and the type generated from the incoming bitmap will not contain additional LODs. | | [Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_ON_SYNC_TO_TEXTURE) | The Type of the Allocation will be the same as MIPMAP_NONE.                                                    | |

*** ** * ** ***

| **This enum was deprecated in API level 31.**
|
| Deprecated in Java.

Controls mipmap behavior when using the bitmap creation and update functions.

## Summary

|                                                                                                                     Enum values                                                                                                                      ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [MIPMAP_FULL](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_FULL) A full mipmap chain will be created in script memory.                                                          |
| [MIPMAP_NONE](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_NONE) No mipmaps will be generated and the type generated from the incoming bitmap will not contain additional LODs. |
| [MIPMAP_ON_SYNC_TO_TEXTURE](https://developer.android.com/reference/kotlin/android/renderscript/Allocation.MipmapControl#ENUM_VALUE:MIPMAP_ON_SYNC_TO_TEXTURE) The Type of the Allocation will be the same as MIPMAP_NONE.                        |

## Enum values

### MIPMAP_FULL

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val MIPMAP_FULL : Allocation.MipmapControl
```

**Deprecated:** *Deprecated in Java.*

A full mipmap chain will be created in script memory. The Type of the Allocation will contain a full mipmap chain. On upload, the full chain will be transferred.  

### MIPMAP_NONE

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val MIPMAP_NONE : Allocation.MipmapControl
```

**Deprecated:** *Deprecated in Java.*

No mipmaps will be generated and the type generated from the incoming bitmap will not contain additional LODs.  

### MIPMAP_ON_SYNC_TO_TEXTURE

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val MIPMAP_ON_SYNC_TO_TEXTURE : Allocation.MipmapControl
```

**Deprecated:** *Deprecated in Java.*

The Type of the Allocation will be the same as MIPMAP_NONE. It will not contain mipmaps. On upload, the allocation data will contain a full mipmap chain generated from the top level in script memory.