Home | History | Annotate | Download | only in renderscript

Lines Matching refs: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) {
58 * @return minification setting for the sampler
65 * @return magnification setting for the sampler
72 * @return S wrapping mode for the sampler
79 * @return T wrapping mode for the sampler
86 * @return anisotropy setting for the sampler
93 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
96 * @param rs Context to which the sampler will belong.
98 * @return Sampler
100 public static Sampler CLAMP_NEAREST(RenderScript rs) {
117 * Retrieve a sampler with min and mag set to linear and wrap modes set to
120 * @param rs Context to which the sampler will belong.
122 * @return Sampler
124 public static Sampler CLAMP_LINEAR(RenderScript rs) {
141 * Retrieve a sampler with mag set to linear, min linear mipmap linear, and
144 * @param rs Context to which the sampler will belong.
146 * @return Sampler
148 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) {
165 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
168 * @param rs Context to which the sampler will belong.
170 * @return Sampler
172 public static Sampler WRAP_NEAREST(RenderScript rs) {
189 * Retrieve a sampler with min and mag set to linear and wrap modes set to
192 * @param rs Context to which the sampler will belong.
194 * @return Sampler
196 public static Sampler WRAP_LINEAR(RenderScript rs) {
213 * Retrieve a sampler with mag set to linear, min linear mipmap linear, and
216 * @param rs Context to which the sampler will belong.
218 * @return Sampler
220 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) {
237 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
240 * @param rs Context to which the sampler will belong.
242 * @return Sampler
244 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) {
261 * Retrieve a sampler with min and mag set to linear and wrap modes set to
264 * @param rs Context to which the sampler will belong.
266 * @return Sampler
268 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) {
285 * Retrieve a sampler with min and mag set to linear and wrap modes set to
288 * @param rs Context to which the sampler will belong.
290 * @return Sampler
292 public static Sampler MIRRORED_REPEAT_LINEAR_MIP_LINEAR(RenderScript rs) {
310 * a Sampler with different min and mag modes is desired.
374 public Sampler create() {
378 Sampler sampler = new Sampler(id, mRS);
379 sampler.mMin = mMin;
380 sampler.mMag = mMag;
381 sampler.mWrapS = mWrapS;
382 sampler.mWrapT = mWrapT;
383 sampler.mWrapR = mWrapR;
384 sampler.mAniso = mAniso;
385 return sampler;