Home | History | Annotate | Download | only in renderscript

Lines Matching defs:sampler

31  * Sampler object that defines how Allocations can be read as textures within a
35 * Any Allocation used with a Sampler must have been created with {@link
36 * android.renderscript.Allocation#USAGE_GRAPHICS_TEXTURE}; using a Sampler on
40 public class Sampler extends BaseObj {
63 Sampler(int id, RenderScript rs) {
68 * @return minification setting for the sampler
75 * @return magnification setting for the sampler
82 * @return S wrapping mode for the sampler
89 * @return T wrapping mode for the sampler
96 * @return anisotropy setting for the sampler
103 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
106 * @param rs Context to which the sampler will belong.
108 * @return Sampler
110 public static Sampler CLAMP_NEAREST(RenderScript rs) {
123 * Retrieve a sampler with min and mag set to linear and wrap modes set to
126 * @param rs Context to which the sampler will belong.
128 * @return Sampler
130 public static Sampler CLAMP_LINEAR(RenderScript rs) {
143 * Retrieve a sampler with mag set to linear, min linear mipmap linear, and
146 * @param rs Context to which the sampler will belong.
148 * @return Sampler
150 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) {
163 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
166 * @param rs Context to which the sampler will belong.
168 * @return Sampler
170 public static Sampler WRAP_NEAREST(RenderScript rs) {
183 * Retrieve a sampler with min and mag set to linear and wrap modes set to
186 * @param rs Context to which the sampler will belong.
188 * @return Sampler
190 public static Sampler WRAP_LINEAR(RenderScript rs) {
203 * Retrieve a sampler with mag set to linear, min linear mipmap linear, and
206 * @param rs Context to which the sampler will belong.
208 * @return Sampler
210 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) {
223 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
226 * @param rs Context to which the sampler will belong.
228 * @return Sampler
230 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) {
243 * Retrieve a sampler with min and mag set to linear and wrap modes set to
246 * @param rs Context to which the sampler will belong.
248 * @return Sampler
250 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) {
263 * Retrieve a sampler with min and mag set to linear and wrap modes set to
266 * @param rs Context to which the sampler will belong.
268 * @return Sampler
270 public static Sampler MIRRORED_REPEAT_LINEAR_MIP_LINEAR(RenderScript rs) {
284 * a Sampler with different min and mag modes is desired.
348 public Sampler create() {
352 Sampler sampler = new Sampler(id, mRS);
353 sampler.mMin = mMin;
354 sampler.mMag = mMag;
355 sampler.mWrapS = mWrapS;
356 sampler.mWrapT = mWrapT;
357 sampler.mWrapR = mWrapR;
358 sampler.mAniso = mAniso;
359 return sampler;