Lines Matching refs:state
32 mHal.state.inputElementsCount++; in Program()
35 mHal.state.constantsCount++; in Program()
38 mHal.state.texturesCount++; in Program()
42 mTextures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount]; in Program()
43 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program()
44 mInputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount]; in Program()
45 mConstantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount]; in Program()
46 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; in Program()
48 mHal.state.textures = new Allocation*[mHal.state.texturesCount]; in Program()
49 mHal.state.samplers = new Sampler*[mHal.state.texturesCount]; in Program()
50 mHal.state.textureTargets = new RsTextureTarget[mHal.state.texturesCount]; in Program()
51 mHal.state.inputElements = new Element*[mHal.state.inputElementsCount]; in Program()
52 mHal.state.constantTypes = new Type*[mHal.state.constantsCount]; in Program()
53 mHal.state.constants = new Allocation*[mHal.state.constantsCount]; in Program()
64 mHal.state.inputElements[input++] = reinterpret_cast<Element *>(params[ct+1]); in Program()
68 mHal.state.constantTypes[constant++] = reinterpret_cast<Type *>(params[ct+1]); in Program()
71 mHal.state.textureTargets[texture++] = (RsTextureTarget)params[ct+1]; in Program()
96 delete[] mHal.state.textures; in ~Program()
97 delete[] mHal.state.samplers; in ~Program()
98 delete[] mHal.state.textureTargets; in ~Program()
99 delete[] mHal.state.inputElements; in ~Program()
100 delete[] mHal.state.constantTypes; in ~Program()
101 delete[] mHal.state.constants; in ~Program()
102 mHal.state.inputElementsCount = 0; in ~Program()
103 mHal.state.constantsCount = 0; in ~Program()
104 mHal.state.texturesCount = 0; in ~Program()
114 for (uint32_t ct=0; ct < mHal.state.constantsCount; ct++) { in freeChildren()
118 for (uint32_t ct=0; ct < mHal.state.texturesCount; ct++) { in freeChildren()
129 mHal.state.textures = nullptr; in initMemberVars()
130 mHal.state.samplers = nullptr; in initMemberVars()
131 mHal.state.textureTargets = nullptr; in initMemberVars()
132 mHal.state.inputElements = nullptr; in initMemberVars()
133 mHal.state.constantTypes = nullptr; in initMemberVars()
134 mHal.state.constants = nullptr; in initMemberVars()
136 mHal.state.inputElementsCount = 0; in initMemberVars()
137 mHal.state.constantsCount = 0; in initMemberVars()
138 mHal.state.texturesCount = 0; in initMemberVars()
154 if (slot >= mHal.state.constantsCount) { in bindAllocation()
156 slot, (uintptr_t)this, mHal.state.constantsCount); in bindAllocation()
174 mHal.state.constants[slot] = alloc; in bindAllocation()
182 if (slot >= mHal.state.texturesCount) { in bindTexture()
183 … ALOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindTexture()
188 if (a && a->getType()->getDimFaces() && mHal.state.textureTargets[slot] != RS_TEXTURE_CUBE) { in bindTexture()
195 mHal.state.textures[slot] = a; in bindTexture()
201 if (slot >= mHal.state.texturesCount) { in bindSampler()
202 … ALOGE("Attempt to bind sampler to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindSampler()
208 mHal.state.samplers[slot] = s; in bindSampler()