Lines Matching full:slot
112 void Program::bindAllocation(Allocation *alloc, uint32_t slot)
114 if (mConstants[slot].get() == alloc) {
117 if (mConstants[slot].get()) {
118 mConstants[slot].get()->removeProgramToDirty(this);
120 mConstants[slot].set(alloc);
127 void Program::bindTexture(uint32_t slot, Allocation *a)
129 if (slot >= MAX_TEXTURE) {
130 LOGE("Attempt to bind a texture to a slot > MAX_TEXTURE");
134 //LOGE("bindtex %i %p", slot, a);
135 mTextures[slot].set(a);
139 void Program::bindSampler(uint32_t slot, Sampler *s)
141 if (slot >= MAX_TEXTURE) {
142 LOGE("Attempt to bind a Sampler to a slot > MAX_TEXTURE");
146 mSamplers[slot].set(s);
244 void rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants)
247 p->bindAllocation(static_cast<Allocation *>(constants), slot);
250 void rsi_ProgramBindTexture(Context *rsc, RsProgram vpf, uint32_t slot, RsAllocation a)
253 p->bindTexture(slot, static_cast<Allocation *>(a));
256 void rsi_ProgramBindSampler(Context *rsc, RsProgram vpf, uint32_t slot, RsSampler s)
259 p->bindSampler(slot, static_cast<Sampler *>(s));