Added in API level 11
Deprecated in API level 31

Sampler


open class Sampler : BaseObj
kotlin.Any
   ↳ android.renderscript.BaseObj
   ↳ android.renderscript.Sampler

Sampler object that defines how Allocations can be read as textures within a kernel. Samplers are used in conjunction with the rsSample runtime function to return values from normalized coordinates. Any Allocation used with a Sampler must have been created with android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE; using a Sampler on an android.renderscript.Allocation that was not created with android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE is undefined.

Summary

Nested classes
open

Builder for creating non-standard samplers.

Public methods
open static Sampler!

Retrieve a sampler with min and mag set to linear and wrap modes set to clamp.

open static Sampler!

Retrieve a sampler with mag set to linear, min linear mipmap linear, and wrap modes set to clamp.

open static Sampler!

Retrieve a sampler with min and mag set to nearest and wrap modes set to clamp.

open static Sampler!

Retrieve a sampler with min and mag set to linear and wrap modes set to mirrored repeat.

open static Sampler!

Retrieve a sampler with min and mag set to linear and wrap modes set to mirrored repeat.

open static Sampler!

Retrieve a sampler with min and mag set to nearest and wrap modes set to mirrored repeat.

open static Sampler!

Retrieve a sampler with min and mag set to linear and wrap modes set to wrap.

open static Sampler!

Retrieve a sampler with mag set to linear, min linear mipmap linear, and wrap modes set to wrap.

open static Sampler!

Retrieve a sampler with min and mag set to nearest and wrap modes set to wrap.

open Float

open Sampler.Value!

open Sampler.Value!

open Sampler.Value!

open Sampler.Value!

Inherited functions

Public methods

CLAMP_LINEAR

Added in API level 11
open static fun CLAMP_LINEAR(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with min and mag set to linear and wrap modes set to clamp.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

CLAMP_LINEAR_MIP_LINEAR

Added in API level 11
open static fun CLAMP_LINEAR_MIP_LINEAR(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with mag set to linear, min linear mipmap linear, and wrap modes set to clamp.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

CLAMP_NEAREST

Added in API level 11
open static fun CLAMP_NEAREST(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with min and mag set to nearest and wrap modes set to clamp.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

MIRRORED_REPEAT_LINEAR

Added in API level 18
Deprecated in API level 31
open static fun MIRRORED_REPEAT_LINEAR(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with min and mag set to linear and wrap modes set to mirrored repeat.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

MIRRORED_REPEAT_LINEAR_MIP_LINEAR

Added in API level 18
Deprecated in API level 31
open static fun MIRRORED_REPEAT_LINEAR_MIP_LINEAR(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with min and mag set to linear and wrap modes set to mirrored repeat.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

MIRRORED_REPEAT_NEAREST

Added in API level 18
Deprecated in API level 31
open static fun MIRRORED_REPEAT_NEAREST(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with min and mag set to nearest and wrap modes set to mirrored repeat.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

WRAP_LINEAR

Added in API level 11
open static fun WRAP_LINEAR(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with min and mag set to linear and wrap modes set to wrap.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

WRAP_LINEAR_MIP_LINEAR

Added in API level 11
open static fun WRAP_LINEAR_MIP_LINEAR(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with mag set to linear, min linear mipmap linear, and wrap modes set to wrap.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

WRAP_NEAREST

Added in API level 11
open static fun WRAP_NEAREST(rs: RenderScript!): Sampler!

Deprecated: Deprecated in Java.

Retrieve a sampler with min and mag set to nearest and wrap modes set to wrap.

Parameters
rs RenderScript!: Context to which the sampler will belong.
Return
Sampler! Sampler

getAnisotropy

Added in API level 16
Deprecated in API level 31
open fun getAnisotropy(): Float

Deprecated: Deprecated in Java.

Return
Float anisotropy setting for the sampler

getMagnification

Added in API level 16
Deprecated in API level 31
open fun getMagnification(): Sampler.Value!

Deprecated: Deprecated in Java.

Return
Sampler.Value! magnification setting for the sampler

getMinification

Added in API level 16
Deprecated in API level 31
open fun getMinification(): Sampler.Value!

Deprecated: Deprecated in Java.

Return
Sampler.Value! minification setting for the sampler

getWrapS

Added in API level 16
Deprecated in API level 31
open fun getWrapS(): Sampler.Value!

Deprecated: Deprecated in Java.

Return
Sampler.Value! S wrapping mode for the sampler

getWrapT

Added in API level 16
Deprecated in API level 31
open fun getWrapT(): Sampler.Value!

Deprecated: Deprecated in Java.

Return
Sampler.Value! T wrapping mode for the sampler