Lines Matching refs:rs

52     Sampler(long id, RenderScript rs) {
53 super(id, rs);
96 * @param rs Context to which the sampler will belong.
100 public static Sampler CLAMP_NEAREST(RenderScript rs) {
101 if (rs.mSampler_CLAMP_NEAREST == null) {
102 synchronized (rs) {
103 if (rs.mSampler_CLAMP_NEAREST == null) {
104 Builder b = new Builder(rs);
109 rs.mSampler_CLAMP_NEAREST = b.create();
113 return rs.mSampler_CLAMP_NEAREST;
120 * @param rs Context to which the sampler will belong.
124 public static Sampler CLAMP_LINEAR(RenderScript rs) {
125 if (rs.mSampler_CLAMP_LINEAR == null) {
126 synchronized (rs) {
127 if (rs.mSampler_CLAMP_LINEAR == null) {
128 Builder b = new Builder(rs);
133 rs.mSampler_CLAMP_LINEAR = b.create();
137 return rs.mSampler_CLAMP_LINEAR;
144 * @param rs Context to which the sampler will belong.
148 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) {
149 if (rs.mSampler_CLAMP_LINEAR_MIP_LINEAR == null) {
150 synchronized (rs) {
151 if (rs.mSampler_CLAMP_LINEAR_MIP_LINEAR == null) {
152 Builder b = new Builder(rs);
157 rs.mSampler_CLAMP_LINEAR_MIP_LINEAR = b.create();
161 return rs.mSampler_CLAMP_LINEAR_MIP_LINEAR;
168 * @param rs Context to which the sampler will belong.
172 public static Sampler WRAP_NEAREST(RenderScript rs) {
173 if (rs.mSampler_WRAP_NEAREST == null) {
174 synchronized (rs) {
175 if (rs.mSampler_WRAP_NEAREST == null) {
176 Builder b = new Builder(rs);
181 rs.mSampler_WRAP_NEAREST = b.create();
185 return rs.mSampler_WRAP_NEAREST;
192 * @param rs Context to which the sampler will belong.
196 public static Sampler WRAP_LINEAR(RenderScript rs) {
197 if (rs.mSampler_WRAP_LINEAR == null) {
198 synchronized (rs) {
199 if (rs.mSampler_WRAP_LINEAR == null) {
200 Builder b = new Builder(rs);
205 rs.mSampler_WRAP_LINEAR = b.create();
209 return rs.mSampler_WRAP_LINEAR;
216 * @param rs Context to which the sampler will belong.
220 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) {
221 if (rs.mSampler_WRAP_LINEAR_MIP_LINEAR == null) {
222 synchronized (rs) {
223 if (rs.mSampler_WRAP_LINEAR_MIP_LINEAR == null) {
224 Builder b = new Builder(rs);
229 rs.mSampler_WRAP_LINEAR_MIP_LINEAR = b.create();
233 return rs.mSampler_WRAP_LINEAR_MIP_LINEAR;
240 * @param rs Context to which the sampler will belong.
244 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) {
245 if (rs.mSampler_MIRRORED_REPEAT_NEAREST == null) {
246 synchronized (rs) {
247 if (rs.mSampler_MIRRORED_REPEAT_NEAREST == null) {
248 Builder b = new Builder(rs);
253 rs.mSampler_MIRRORED_REPEAT_NEAREST = b.create();
257 return rs.mSampler_MIRRORED_REPEAT_NEAREST;
264 * @param rs Context to which the sampler will belong.
268 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) {
269 if (rs.mSampler_MIRRORED_REPEAT_LINEAR == null) {
270 synchronized (rs) {
271 if (rs.mSampler_MIRRORED_REPEAT_LINEAR == null) {
272 Builder b = new Builder(rs);
277 rs.mSampler_MIRRORED_REPEAT_LINEAR = b.create();
281 return rs.mSampler_MIRRORED_REPEAT_LINEAR;
288 * @param rs Context to which the sampler will belong.
292 public static Sampler MIRRORED_REPEAT_LINEAR_MIP_LINEAR(RenderScript rs) {
293 if (rs.mSampler_MIRRORED_REPEAT_LINEAR_MIP_LINEAR == null) {
294 synchronized (rs) {
295 if (rs.mSampler_MIRRORED_REPEAT_LINEAR_MIP_LINEAR == null) {
296 Builder b = new Builder(rs);
301 rs.mSampler_MIRRORED_REPEAT_LINEAR_MIP_LINEAR = b.create();
305 return rs.mSampler_MIRRORED_REPEAT_LINEAR_MIP_LINEAR;
321 public Builder(RenderScript rs) {
322 mRS = rs;