public class Sampler extends BaseObj
rsSample
runtime
function to return values from normalized coordinates.
Any Allocation used with a Sampler must have been created with Allocation.USAGE_GRAPHICS_TEXTURE
; using a
Sampler on an Allocation
that was not
created with
Allocation.USAGE_GRAPHICS_TEXTURE
is
undefined.Modifier and Type | Class and Description |
---|---|
static class |
Sampler.Builder
Builder for creating non-standard samplers.
|
static class |
Sampler.Value |
Modifier and Type | Method and Description |
---|---|
static Sampler |
CLAMP_LINEAR_MIP_LINEAR(RenderScript rs)
Retrieve a sampler with mag set to linear, min linear mipmap linear, and
wrap modes set to clamp.
|
static Sampler |
CLAMP_LINEAR(RenderScript rs)
Retrieve a sampler with min and mag set to linear and wrap modes set to
clamp.
|
static Sampler |
CLAMP_NEAREST(RenderScript rs)
Retrieve a sampler with min and mag set to nearest and wrap modes set to
clamp.
|
float |
getAnisotropy() |
Sampler.Value |
getMagnification() |
Sampler.Value |
getMinification() |
Sampler.Value |
getWrapS() |
Sampler.Value |
getWrapT() |
static Sampler |
MIRRORED_REPEAT_LINEAR(RenderScript rs)
Retrieve a sampler with min and mag set to linear and wrap modes set to
mirrored repeat.
|
static Sampler |
MIRRORED_REPEAT_NEAREST(RenderScript rs)
Retrieve a sampler with min and mag set to nearest and wrap modes set to
mirrored repeat.
|
static Sampler |
WRAP_LINEAR_MIP_LINEAR(RenderScript rs)
Retrieve a sampler with mag set to linear, min linear mipmap linear, and
wrap modes set to wrap.
|
static Sampler |
WRAP_LINEAR(RenderScript rs)
Retrieve a sampler with min and mag set to linear and wrap modes set to
wrap.
|
static Sampler |
WRAP_NEAREST(RenderScript rs)
Retrieve a sampler with min and mag set to nearest and wrap modes set to
wrap.
|
public Sampler.Value getMinification()
public Sampler.Value getMagnification()
public Sampler.Value getWrapS()
public Sampler.Value getWrapT()
public float getAnisotropy()
public static Sampler CLAMP_NEAREST(RenderScript rs)
rs
- Context to which the sampler will belong.public static Sampler CLAMP_LINEAR(RenderScript rs)
rs
- Context to which the sampler will belong.public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs)
rs
- Context to which the sampler will belong.public static Sampler WRAP_NEAREST(RenderScript rs)
rs
- Context to which the sampler will belong.public static Sampler WRAP_LINEAR(RenderScript rs)
rs
- Context to which the sampler will belong.public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs)
rs
- Context to which the sampler will belong.public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs)
rs
- Context to which the sampler will belong.public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs)
rs
- Context to which the sampler will belong.