Sampler
open classSampler: 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! |
CLAMP_LINEAR(rs: RenderScript!)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! |
CLAMP_NEAREST(rs: RenderScript!)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! |
WRAP_LINEAR(rs: RenderScript!)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! |
WRAP_NEAREST(rs: RenderScript!)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! |
getWrapS() |
| open Sampler.Value! |
getWrapT() |
| Inherited functions | |
|---|---|
Public methods
CLAMP_LINEAR
open static funCLAMP_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
open static funCLAMP_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
open static funCLAMP_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
open static funMIRRORED_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
open static funMIRRORED_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
open static funMIRRORED_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
open static funWRAP_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
open static funWRAP_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
open static funWRAP_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
open fungetAnisotropy(): Float
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Float |
anisotropy setting for the sampler |
getMagnification
open fungetMagnification(): Sampler.Value!
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Sampler.Value! |
magnification setting for the sampler |
getMinification
open fungetMinification(): Sampler.Value!
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Sampler.Value! |
minification setting for the sampler |
getWrapS
open fungetWrapS(): Sampler.Value!
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Sampler.Value! |
S wrapping mode for the sampler |
getWrapT
open fungetWrapT(): Sampler.Value!
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Sampler.Value! |
T wrapping mode for the sampler |