Home | History | Annotate | Download | only in rs

Lines Matching refs:rsc

24 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) {
29 Sampler::Sampler(Context *rsc,
35 float aniso) : ObjectBase(rsc) {
71 void Sampler::serialize(Context *rsc, OStream *stream) const {
74 Sampler *Sampler::createFromStream(Context *rsc, IStream *stream) {
78 ObjectBaseRef<Sampler> Sampler::getSampler(Context *rsc,
87 for (uint32_t ct = 0; ct < rsc->mStateSampler.mAllSamplers.size(); ct++) {
88 Sampler *existing = rsc->mStateSampler.mAllSamplers[ct];
101 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Sampler), 0);
103 rsc->setError(RS_ERROR_FATAL_DRIVER, "Couldn't allocate memory for Allocation");
107 Sampler *s = new (allocMem) Sampler(rsc, magFilter, minFilter, wrapS, wrapT, wrapR, aniso);
116 rsc->mStateSampler.mAllSamplers.push_back(s);
132 RsSampler rsi_SamplerCreate(Context * rsc,
139 ObjectBaseRef<Sampler> s = Sampler::getSampler(rsc, magFilter, minFilter,