Home
last modified time | relevance | path

Searched refs:Sampler (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUT_sampler.java22 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/
DrsSampler.cpp25 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 …]
DrsSampler.h37 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;
DrsProgram.h47 Sampler **samplers;
71 void bindSampler(Context *, uint32_t slot, Sampler *);
75 ObjectBaseRef<Sampler> *mSamplers;
DrsProgram.cpp41 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()
Drs_hal.h41 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/
DSampler.java35 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()
DRenderScript.java727 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/
DRsRenderStatesRS.java28 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/
DSampleRSActivity.java30 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/
DSimpleModelRS.java45 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()
DSceneGraphRS.java53 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/
DFBOTestRS.java48 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()
DFBOSyncRS.java48 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/
DrsdSampler.h24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
DrsdSampler.cpp34 const android::renderscript::Sampler *) { in rsdSamplerInit() argument
39 const android::renderscript::Sampler *s) { in rsdSamplerDestroy()
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
DShadersTestRS.java35 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/
DCarouselRS.java382 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/
DRsBenchRS.java35 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()
DFillTest.java162 mFillScript.set_gLinearClamp(Sampler.CLAMP_LINEAR(mRS)); in initFillScript()
163 mFillScript.set_gLinearWrap(Sampler.WRAP_LINEAR(mRS)); in initFillScript()
DUiTest.java230 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/
Drs_structs.h133 typedef struct Sampler { struct
/frameworks/base/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/
DSurfaceTextureOpaqueRS.java60 mPF.bindSampler(Sampler.CLAMP_NEAREST(mRS), 0); in init()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DFullscreenBlur.java169 prog.getProgram().bindSampler(Sampler.CLAMP_LINEAR(rs), 0); in getShader()
181 mPF_Texture.getProgram().bindSampler(Sampler.WRAP_LINEAR_MIP_LINEAR(rs), 0); in initShaders()
DTestAppRS.java145 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()

12