Lines Matching refs:rs

65     Sampler(int id, RenderScript rs) {
66 super(id, rs);
108 * @param rs Context to which the sampler will belong.
112 public static Sampler CLAMP_NEAREST(RenderScript rs) {
113 if(rs.mSampler_CLAMP_NEAREST == null) {
114 Builder b = new Builder(rs);
119 rs.mSampler_CLAMP_NEAREST = b.create();
121 return rs.mSampler_CLAMP_NEAREST;
128 * @param rs Context to which the sampler will belong.
132 public static Sampler CLAMP_LINEAR(RenderScript rs) {
133 if(rs.mSampler_CLAMP_LINEAR == null) {
134 Builder b = new Builder(rs);
139 rs.mSampler_CLAMP_LINEAR = b.create();
141 return rs.mSampler_CLAMP_LINEAR;
148 * @param rs Context to which the sampler will belong.
152 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) {
153 if(rs.mSampler_CLAMP_LINEAR_MIP_LINEAR == null) {
154 Builder b = new Builder(rs);
159 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 Builder b = new Builder(rs);
179 rs.mSampler_WRAP_NEAREST = b.create();
181 return rs.mSampler_WRAP_NEAREST;
188 * @param rs Context to which the sampler will belong.
192 public static Sampler WRAP_LINEAR(RenderScript rs) {
193 if(rs.mSampler_WRAP_LINEAR == null) {
194 Builder b = new Builder(rs);
199 rs.mSampler_WRAP_LINEAR = b.create();
201 return rs.mSampler_WRAP_LINEAR;
208 * @param rs Context to which the sampler will belong.
212 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) {
213 if(rs.mSampler_WRAP_LINEAR_MIP_LINEAR == null) {
214 Builder b = new Builder(rs);
219 rs.mSampler_WRAP_LINEAR_MIP_LINEAR = b.create();
221 return rs.mSampler_WRAP_LINEAR_MIP_LINEAR;
228 * @param rs Context to which the sampler will belong.
232 public static Sampler MIRRORED_REPEAT_NEAREST(RenderScript rs) {
233 if(rs.mSampler_MIRRORED_REPEAT_NEAREST == null) {
234 Builder b = new Builder(rs);
239 rs.mSampler_MIRRORED_REPEAT_NEAREST = b.create();
241 return rs.mSampler_MIRRORED_REPEAT_NEAREST;
248 * @param rs Context to which the sampler will belong.
252 public static Sampler MIRRORED_REPEAT_LINEAR(RenderScript rs) {
253 if(rs.mSampler_MIRRORED_REPEAT_LINEAR == null) {
254 Builder b = new Builder(rs);
259 rs.mSampler_MIRRORED_REPEAT_LINEAR = b.create();
261 return rs.mSampler_MIRRORED_REPEAT_LINEAR;
277 public Builder(RenderScript rs) {
278 mRS = rs;