HomeSort by relevance Sort by last modified time
    Searched refs:Sampler (Results 1 - 25 of 56) sorted by null

1 2 3

  /cts/tests/tests/renderscript/src/android/renderscript/cts/
SamplerTest.java 19 import android.renderscript.Sampler;
20 import android.renderscript.Sampler.Value;
24 Sampler.Value[] mMinValues;
25 Sampler.Value[] mMagValues;
26 Sampler.Value[] mWrapValues;
32 mMinValues = new Sampler.Value[4];
33 mMinValues[0] = Sampler.Value.NEAREST;
34 mMinValues[1] = Sampler.Value.LINEAR;
35 mMinValues[2] = Sampler.Value.LINEAR_MIP_LINEAR;
36 mMinValues[3] = Sampler.Value.LINEAR_MIP_NEAREST
    [all...]
ProgramFragmentFixedFunctionTest.java 23 import android.renderscript.Sampler;
72 pf.bindSampler(Sampler.CLAMP_NEAREST(mRS), t);
  /frameworks/base/libs/rs/driver/
rsdSampler.h 24 const android::renderscript::Sampler *);
27 const android::renderscript::Sampler *);
rsdSampler.cpp 34 const android::renderscript::Sampler *) {
39 const android::renderscript::Sampler *s) {
  /frameworks/base/libs/rs/
rsSampler.h 38 class Sampler : public ObjectBase {
55 static ObjectBaseRef<Sampler> getSampler(Context *,
67 static Sampler *createFromStream(Context *rsc, IStream *stream);
73 virtual ~Sampler();
76 Sampler(Context *);
77 Sampler(Context *,
89 ObjectBaseRef<Sampler> mSamplers[RS_MAX_SAMPLER_SLOT];
98 Vector<Sampler *> mAllSamplers;
rsSampler.cpp 25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) {
30 Sampler::Sampler(Context *rsc,
44 mRSC->mHal.funcs.sampler.init(mRSC, this);
47 Sampler::~Sampler() {
48 mRSC->mHal.funcs.sampler.destroy(mRSC, this);
51 void Sampler::preDestroy() const {
60 void Sampler::bindToContext(SamplerState *ss, uint32_t slot)
    [all...]
rsProgram.h 38 // Texture lookups go though a sampler which in effect converts normalized
47 Sampler **samplers;
71 void bindSampler(Context *, uint32_t slot, Sampler *);
75 ObjectBaseRef<Sampler> *mSamplers;
rsProgram.cpp 41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount];
47 mHal.state.samplers = new Sampler*[mHal.state.texturesCount];
187 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) {
189 LOGE("Attempt to bind sampler to slot %u but tex count is %u", slot, mHal.state.texturesCount);
190 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind sampler");
214 p->bindSampler(rsc, slot, static_cast<Sampler *>(s));
  /frameworks/base/graphics/java/android/renderscript/
Sampler.java 31 * Sampler object which defines how data is extracted from textures. Samplers
35 public class Sampler extends BaseObj {
57 Sampler(int id, RenderScript rs) {
63 * @return minification setting for the sampler
71 * @return magnification setting for the sampler
79 * @return S wrapping mode for the sampler
87 * @return T wrapping mode for the sampler
95 * @return anisotropy setting for the sampler
102 * Retrieve a sampler with min and mag set to nearest and wrap modes set to
105 * @param rs Context to which the sampler will belong
293 Sampler sampler = new Sampler(id, mRS); local
    [all...]
  /development/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/
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);
363 bs.setMinification(Sampler.Value.LINEAR)
    [all...]
  /frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
FBOSyncRS.java 48 private Sampler mSampler;
91 Sampler.Builder bs = new Sampler.Builder(mRS);
92 bs.setMinification(Sampler.Value.LINEAR);
93 bs.setMagnification(Sampler.Value.LINEAR);
94 bs.setWrapS(Sampler.Value.CLAMP);
95 bs.setWrapT(Sampler.Value.CLAMP);
FBOTestRS.java 48 private Sampler mSampler;
90 Sampler.Builder bs = new Sampler.Builder(mRS);
91 bs.setMinification(Sampler.Value.LINEAR);
92 bs.setMagnification(Sampler.Value.LINEAR);
93 bs.setWrapS(Sampler.Value.CLAMP);
94 bs.setWrapT(Sampler.Value.CLAMP);
  /frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
SceneGraphRS.java 53 private Sampler mSampler;
105 Sampler.Builder bs = new Sampler.Builder(mRS);
106 bs.setMinification(Sampler.Value.LINEAR);
107 bs.setMagnification(Sampler.Value.LINEAR);
108 bs.setWrapS(Sampler.Value.CLAMP);
109 bs.setWrapT(Sampler.Value.CLAMP);
SimpleModelRS.java 45 private Sampler mSampler;
89 Sampler.Builder bs = new Sampler.Builder(mRS);
90 bs.setMinification(Sampler.Value.LINEAR);
91 bs.setMagnification(Sampler.Value.LINEAR);
92 bs.setWrapS(Sampler.Value.CLAMP);
93 bs.setWrapT(Sampler.Value.CLAMP);
  /external/v8/src/
log.h 138 class Sampler;
156 Sampler* sampler();
350 // Returns whether profiler's sampler is active.
353 // The sampler used by the profiler and the sliding state window.
419 typedef void (*VisitSampler)(Sampler*, void*);
427 // Adds/Removes an active sampler.
428 static void AddActiveSampler(Sampler* sampler);
429 static void RemoveActiveSampler(Sampler* sampler)
    [all...]
platform-cygwin.cc 602 // On Cygwin we use the same sampler implementation as on win32.
604 class Sampler::PlatformData : public Malloced {
608 // going to use it in the sampler thread. Using GetThreadHandle() will
637 static void AddActiveSampler(Sampler* sampler) {
639 SamplerRegistry::AddActiveSampler(sampler);
641 instance_ = new SamplerThread(sampler->interval());
644 ASSERT(instance_->interval_ == sampler->interval());
648 static void RemoveActiveSampler(Sampler* sampler) {
    [all...]
platform-freebsd.cc 626 class Sampler::PlatformData : public Malloced {
650 Sampler* sampler = isolate->logger()->sampler(); local
651 if (sampler == NULL || !sampler->IsActive()) return;
674 sampler->SampleStack(sample);
675 sampler->Tick(sample);
690 static void AddActiveSampler(Sampler* sampler) {
    [all...]
platform-macos.cc 652 class Sampler::PlatformData : public Malloced {
676 static void AddActiveSampler(Sampler* sampler) {
678 SamplerRegistry::AddActiveSampler(sampler);
680 instance_ = new SamplerThread(sampler->interval());
683 ASSERT(instance_->interval_ == sampler->interval());
687 static void RemoveActiveSampler(Sampler* sampler) {
689 SamplerRegistry::RemoveActiveSampler(sampler);
725 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread)
    [all...]
platform-solaris.cc 592 static Sampler* active_sampler_ = NULL;
625 class Sampler::PlatformData : public Malloced {
632 explicit PlatformData(Sampler* sampler)
633 : sampler_(sampler),
678 Sampler* sampler_;
689 Sampler::PlatformData* data =
690 reinterpret_cast<Sampler::PlatformData*>(arg);
696 Sampler::Sampler(Isolate* isolate, int interval
    [all...]
platform-openbsd.cc 555 static Sampler* active_sampler_ = NULL;
571 class Sampler::PlatformData : public Malloced {
583 Sampler::Sampler(Isolate* isolate, int interval)
593 Sampler::~Sampler() {
598 void Sampler::Start() {
599 // There can only be one active sampler at the time on POSIX
619 // Set this sampler as the active sampler
    [all...]
  /frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
ShadersTestRS.java 35 import android.renderscript.Sampler;
55 private Sampler mLinearClamp;
56 private Sampler mNearestClamp;
97 mLinearClamp = Sampler.CLAMP_LINEAR(mRS);
100 mNearestClamp = Sampler.CLAMP_NEAREST(mRS);
  /packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
NexusRS.java 22 import static android.renderscript.Sampler.Value.LINEAR;
23 import static android.renderscript.Sampler.Value.CLAMP;
24 import static android.renderscript.Sampler.Value.WRAP;
116 // sampler and program fragment for pulses
121 pft.bindSampler(Sampler.WRAP_LINEAR(mRS), 0);
124 // sampler and program fragment for background image
129 pft565.bindSampler(Sampler.CLAMP_NEAREST(mRS), 0);
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/
GenericWaveRS.java 20 import static android.renderscript.Sampler.Value.LINEAR;
21 import static android.renderscript.Sampler.Value.WRAP;
73 private Sampler mSampler;
176 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS);
  /packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/
Visualization4RS.java 20 import static android.renderscript.Sampler.Value.LINEAR;
21 import static android.renderscript.Sampler.Value.WRAP;
61 private Sampler mSampler;
124 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS);
  /packages/wallpapers/Galaxy4/src/com/android/galaxy4/
GalaxyRS.java 13 import android.renderscript.Sampler;
22 import static android.renderscript.Sampler.Value.*;
199 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS);
204 Sampler sn = samplerBuilder.create();
225 pf.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0);

Completed in 2792 milliseconds

1 2 3