/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
D | UT_sampler.java | 22 import android.renderscript.Sampler; 23 import android.renderscript.Sampler.Value; 28 Sampler minification; 29 Sampler magnification; 30 Sampler wrapS; 31 Sampler wrapT; 32 Sampler anisotropy; 39 private Sampler.Builder getDefaultBuilder(RenderScript RS) { in getDefaultBuilder() 40 Sampler.Builder b = new Sampler.Builder(RS); in getDefaultBuilder() 50 Sampler.Builder b = getDefaultBuilder(RS); in initializeGlobals() [all …]
|
/frameworks/rs/ |
D | rsSampler.cpp | 25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) { in Sampler() function in Sampler 30 Sampler::Sampler(Context *rsc, in Sampler() function in Sampler 47 Sampler::~Sampler() { in ~Sampler() 51 void Sampler::preDestroy() const { in preDestroy() 60 void Sampler::bindToContext(SamplerState *ss, uint32_t slot) { in bindToContext() 65 void Sampler::unbindFromContext(SamplerState *ss) { in unbindFromContext() 71 void Sampler::serialize(OStream *stream) const { in serialize() 74 Sampler *Sampler::createFromStream(Context *rsc, IStream *stream) { in createFromStream() 78 ObjectBaseRef<Sampler> Sampler::getSampler(Context *rsc, in getSampler() 85 ObjectBaseRef<Sampler> returnRef; in getSampler() [all …]
|
D | rsSampler.h | 37 class Sampler : public ObjectBase { 54 static ObjectBaseRef<Sampler> getSampler(Context *, 66 static Sampler *createFromStream(Context *rsc, IStream *stream); 72 virtual ~Sampler(); 75 Sampler(Context *); 76 Sampler(Context *, 88 ObjectBaseRef<Sampler> mSamplers[RS_MAX_SAMPLER_SLOT]; 97 Vector<Sampler *> mAllSamplers;
|
D | rsProgram.h | 47 Sampler **samplers; 71 void bindSampler(Context *, uint32_t slot, Sampler *); 75 ObjectBaseRef<Sampler> *mSamplers;
|
D | rsProgram.cpp | 41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program() 47 mHal.state.samplers = new Sampler*[mHal.state.texturesCount]; in Program() 187 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) { in bindSampler() 214 p->bindSampler(rsc, slot, static_cast<Sampler *>(s)); in rsi_ProgramBindSampler()
|
D | rs_hal.h | 41 class Sampler; variable 218 bool (*init)(const Context *rsc, const Sampler *m); 219 void (*destroy)(const Context *rsc, const Sampler *m);
|
/frameworks/base/graphics/java/android/renderscript/ |
D | Sampler.java | 35 public class Sampler extends BaseObj { class 57 Sampler(int id, RenderScript rs) { in Sampler() method in Sampler 104 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST() 124 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR() 144 public static Sampler CLAMP_LINEAR_MIP_LINEAR(RenderScript rs) { in CLAMP_LINEAR_MIP_LINEAR() 164 public static Sampler WRAP_NEAREST(RenderScript rs) { in WRAP_NEAREST() 184 public static Sampler WRAP_LINEAR(RenderScript rs) { in WRAP_LINEAR() 204 public static Sampler WRAP_LINEAR_MIP_LINEAR(RenderScript rs) { in WRAP_LINEAR_MIP_LINEAR() 284 public Sampler create() { in create() 288 Sampler sampler = new Sampler(id, mRS); in create()
|
D | RenderScript.java | 727 Sampler mSampler_CLAMP_NEAREST; 728 Sampler mSampler_CLAMP_LINEAR; 729 Sampler mSampler_CLAMP_LINEAR_MIP_LINEAR; 730 Sampler mSampler_WRAP_NEAREST; 731 Sampler mSampler_WRAP_LINEAR; 732 Sampler mSampler_WRAP_LINEAR_MIP_LINEAR;
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
D | RsRenderStatesRS.java | 28 import android.renderscript.Sampler.Value; 64 private Sampler mLinearClamp; 65 private Sampler mLinearWrap; 66 private Sampler mMipLinearWrap; 67 private Sampler mNearestClamp; 68 private Sampler mMipLinearAniso8; 69 private Sampler mMipLinearAniso15; 362 Sampler.Builder bs = new Sampler.Builder(mRS); in initSamplers() 363 bs.setMinification(Sampler.Value.LINEAR); in initSamplers() 364 bs.setMagnification(Sampler.Value.LINEAR); in initSamplers() [all …]
|
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/ |
D | SampleRSActivity.java | 30 import android.renderscript.Sampler; 44 private Sampler mSampler; 46 TextureViewUpdater(Allocation outAlloc, Sampler sampler) { in TextureViewUpdater() 115 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS)); in onCreate() 121 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS)); in onCreate() 127 updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_NEAREST(mRS)); in onCreate() 133 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_NEAREST(mRS)); in onCreate() 151 private synchronized void filterAlloc(Allocation alloc, Sampler sampler) { in filterAlloc()
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelRS.java | 45 private Sampler mSampler; 89 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 90 bs.setMinification(Sampler.Value.LINEAR); in initPF() 91 bs.setMagnification(Sampler.Value.LINEAR); in initPF() 92 bs.setWrapS(Sampler.Value.CLAMP); in initPF() 93 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
|
D | SceneGraphRS.java | 53 private Sampler mSampler; 105 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 106 bs.setMinification(Sampler.Value.LINEAR); in initPF() 107 bs.setMagnification(Sampler.Value.LINEAR); in initPF() 108 bs.setWrapS(Sampler.Value.CLAMP); in initPF() 109 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOTestRS.java | 48 private Sampler mSampler; 90 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 91 bs.setMinification(Sampler.Value.LINEAR); in initPF() 92 bs.setMagnification(Sampler.Value.LINEAR); in initPF() 93 bs.setWrapS(Sampler.Value.CLAMP); in initPF() 94 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
|
D | FBOSyncRS.java | 48 private Sampler mSampler; 91 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 92 bs.setMinification(Sampler.Value.LINEAR); in initPF() 93 bs.setMagnification(Sampler.Value.LINEAR); in initPF() 94 bs.setWrapS(Sampler.Value.CLAMP); in initPF() 95 bs.setWrapT(Sampler.Value.CLAMP); in initPF()
|
/frameworks/rs/driver/ |
D | rsdSampler.h | 24 const android::renderscript::Sampler *); 27 const android::renderscript::Sampler *);
|
D | rsdSampler.cpp | 34 const android::renderscript::Sampler *) { in rsdSamplerInit() argument 39 const android::renderscript::Sampler *s) { in rsdSamplerDestroy()
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | ShadersTestRS.java | 35 import android.renderscript.Sampler; 55 private Sampler mLinearClamp; 56 private Sampler mNearestClamp; 97 mLinearClamp = Sampler.CLAMP_LINEAR(mRS); in initPF() 100 mNearestClamp = Sampler.CLAMP_NEAREST(mRS); in initPF()
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
D | CarouselRS.java | 382 mSingleTextureFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram() 399 mSingleTextureBlendingFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram() 415 mMultiTextureFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram() 416 mMultiTextureFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 1); in initFragmentProgram() 432 mMultiTextureBlendingFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initFragmentProgram() 433 mMultiTextureBlendingFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 1); in initFragmentProgram() 435 mScript.set_linearClamp(Sampler.CLAMP_LINEAR(mRS)); in initFragmentProgram()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | RsBenchRS.java | 35 import android.renderscript.Sampler.Value; 231 mProgFragmentTexture.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initProgramFragment() 302 mScript.set_gLinearClamp(Sampler.CLAMP_LINEAR(mRS)); in initRS()
|
D | FillTest.java | 162 mFillScript.set_gLinearClamp(Sampler.CLAMP_LINEAR(mRS)); in initFillScript() 163 mFillScript.set_gLinearWrap(Sampler.WRAP_LINEAR(mRS)); in initFillScript()
|
D | UiTest.java | 230 mUiScript.set_gLinearClamp(Sampler.CLAMP_LINEAR(mRS)); in initUiScript() 250 pfb.bindSampler(Sampler.WRAP_NEAREST(mRS), 0); in initUiScript() 259 pfs.bindSampler(Sampler.WRAP_LINEAR_MIP_LINEAR(mRS), 0); in initUiScript()
|
/frameworks/compile/libbcc/lib/ScriptCRT/ |
D | rs_structs.h | 133 typedef struct Sampler { struct
|
/frameworks/base/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/ |
D | SurfaceTextureOpaqueRS.java | 60 mPF.bindSampler(Sampler.CLAMP_NEAREST(mRS), 0); in init()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | FullscreenBlur.java | 169 prog.getProgram().bindSampler(Sampler.CLAMP_LINEAR(rs), 0); in getShader() 181 mPF_Texture.getProgram().bindSampler(Sampler.WRAP_LINEAR_MIP_LINEAR(rs), 0); in initShaders()
|
D | TestAppRS.java | 145 pf.getProgram().bindSampler(Sampler.WRAP_LINEAR_MIP_LINEAR(mRS), 0); in createFromResource() 147 pf.getProgram().bindSampler(Sampler.CLAMP_LINEAR_MIP_LINEAR(mRS), 1); in createFromResource()
|