Lines Matching refs:rs

63     Sampler(int id, RenderScript rs) {
64 super(id, rs);
106 * @param rs Context to which the sampler will belong.
110 public static Sampler CLAMP_NEAREST(RenderScript rs) {
111 if(rs.mSampler_CLAMP_NEAREST == null) {
112 Builder b = new Builder(rs);
117 rs.mSampler_CLAMP_NEAREST = b.create();
119 return rs.mSampler_CLAMP_NEAREST;
126 * @param rs Context to which the sampler will belong.
130 public static Sampler CLAMP_LINEAR(RenderScript rs) {
131 if(rs.mSampler_CLAMP_LINEAR == null) {
132 Builder b = new Builder(rs);
137 rs.mSampler_CLAMP_LINEAR = b.create();
139 return rs.mSampler_CLAMP_LINEAR;
146 * @param rs Context to which the sampler will belong.
150 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript 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();
159 return rs.mSampler_CLAMP_LINEAR_MIP_LINEAR;
166 * @param rs Context to which the sampler will belong.
170 public static Sampler WRAP_NEAREST(RenderScript rs) {
171 if(rs.mSampler_WRAP_NEAREST == null) {
172 Builder b = new Builder(rs);
177 rs.mSampler_WRAP_NEAREST = b.create();
179 return rs.mSampler_WRAP_NEAREST;
186 * @param rs Context to which the sampler will belong.
190 public static Sampler WRAP_LINEAR(RenderScript rs) {
191 if(rs.mSampler_WRAP_LINEAR == null) {
192 Builder b = new Builder(rs);
197 rs.mSampler_WRAP_LINEAR = b.create();
199 return rs.mSampler_WRAP_LINEAR;
206 * @param rs Context to which the sampler will belong.
210 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) {
211 if(rs.mSampler_WRAP_LINEAR_MIP_LINEAR == null) {
212 Builder b = new Builder(rs);
217 rs.mSampler_WRAP_LINEAR_MIP_LINEAR = b.create();
219 return rs.mSampler_WRAP_LINEAR_MIP_LINEAR;
226 * @param rs Context to which the sampler will belong.
230 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) {
231 if(rs.mSampler_MIRRORED_REPEAT_NEAREST == null) {
232 Builder b = new Builder(rs);
237 rs.mSampler_MIRRORED_REPEAT_NEAREST = b.create();
239 return rs.mSampler_MIRRORED_REPEAT_NEAREST;
246 * @param rs Context to which the sampler will belong.
250 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) {
251 if(rs.mSampler_MIRRORED_REPEAT_LINEAR == null) {
252 Builder b = new Builder(rs);
257 rs.mSampler_MIRRORED_REPEAT_LINEAR = b.create();
259 return rs.mSampler_MIRRORED_REPEAT_LINEAR;
266 * @param rs Context to which the sampler will belong.
270 public static Sampler MIRRORED_REPEAT_LINEAR_MIP_LINEAR(RenderScript rs) {
271 if(rs.mSampler_MIRRORED_REPEAT_LINEAR_MIP_LINEAR == null) {
272 Builder b = new Builder(rs);
277 rs.mSampler_MIRRORED_REPEAT_LINEAR_MIP_LINEAR = b.create();
279 return rs.mSampler_MIRRORED_REPEAT_LINEAR_MIP_LINEAR;
295 public Builder(RenderScript rs) {
296 mRS = rs;