Share via


AllocationAdapter.SetLOD(Int32) Method

Definition

Set the active LOD.

[Android.Runtime.Register("setLOD", "(I)V", "GetSetLOD_IHandler")]
public virtual void SetLOD (int lod);
[<Android.Runtime.Register("setLOD", "(I)V", "GetSetLOD_IHandler")>]
abstract member SetLOD : int -> unit
override this.SetLOD : int -> unit

Parameters

lod
Int32

The LOD to make active.

Attributes

Remarks

Set the active LOD. The LOD must be within the range for the type being adapted. The base allocation must have mipmaps.

Because this changes the dimensions of the adapter the current Y and Z will be reset.

Java documentation for android.renderscript.AllocationAdapter.setLOD(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to