Home | History | Annotate | Download | only in renderscript

Lines Matching defs:Sampler

20  * Sampler object that defines how Allocations can be read as textures within a
24 * Any Allocation used with a Sampler must have been created with {@link
25 * android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE}; using a Sampler on
29 public class Sampler extends BaseObj {
52 Sampler(long id, RenderScript rs) {
57 * @return minification setting for the sampler
64 * @return magnification setting for the sampler
71 * @return S wrapping mode for the sampler
78 * @return T wrapping mode for the sampler
85 * @return anisotropy setting for the sampler
92 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
95 * @param rs Context to which the sampler will belong.
97 * @return Sampler
99 public static Sampler CLAMP_NEAREST(RenderScript rs) {
112 * Retrieve a sampler with min and mag set to linear and wrap modes set to
115 * @param rs Context to which the sampler will belong.
117 * @return Sampler
119 public static Sampler CLAMP_LINEAR(RenderScript rs) {
132 * Retrieve a sampler with mag set to linear, min linear mipmap linear, and
135 * @param rs Context to which the sampler will belong.
137 * @return Sampler
139 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) {
152 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
155 * @param rs Context to which the sampler will belong.
157 * @return Sampler
159 public static Sampler WRAP_NEAREST(RenderScript rs) {
172 * Retrieve a sampler with min and mag set to linear and wrap modes set to
175 * @param rs Context to which the sampler will belong.
177 * @return Sampler
179 public static Sampler WRAP_LINEAR(RenderScript rs) {
192 * Retrieve a sampler with mag set to linear, min linear mipmap linear, and
195 * @param rs Context to which the sampler will belong.
197 * @return Sampler
199 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) {
212 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
215 * @param rs Context to which the sampler will belong.
217 * @return Sampler
219 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) {
232 * Retrieve a sampler with min and mag set to linear and wrap modes set to
235 * @param rs Context to which the sampler will belong.
237 * @return Sampler
239 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) {
252 * Retrieve a sampler with min and mag set to linear and wrap modes set to
255 * @param rs Context to which the sampler will belong.
257 * @return Sampler
259 public static Sampler MIRRORED_REPEAT_LINEAR_MIP_LINEAR(RenderScript rs) {
273 * a Sampler with different min and mag modes is desired.
337 public Sampler create() {
341 Sampler sampler = new Sampler(id, mRS);
342 sampler.mMin = mMin;
343 sampler.mMag = mMag;
344 sampler.mWrapS = mWrapS;
345 sampler.mWrapT = mWrapT;
346 sampler.mWrapR = mWrapR;
347 sampler.mAniso = mAniso;
348 return sampler;