Lines Matching refs:mipmap
43 Mipmap &mipmap = texture.mipmap[level]; in Sampler() local
45 memset(&mipmap, 0, sizeof(Mipmap)); in Sampler()
49 mipmap.buffer[face] = &zero; in Sampler()
52 mipmap.uFrac = 16; in Sampler()
53 mipmap.vFrac = 16; in Sampler()
54 mipmap.wFrac = 16; in Sampler()
114 Mipmap &mipmap = texture.mipmap[level]; in setTextureLevel() local
116 mipmap.buffer[face] = surface->lockInternal(0, 0, 0, LOCK_UNLOCKED, PRIVATE); in setTextureLevel()
158 mipmap.uInt = logWidth; in setTextureLevel()
159 mipmap.vInt = logHeight; in setTextureLevel()
160 mipmap.wInt = logDepth; in setTextureLevel()
161 mipmap.uFrac = 16 - logWidth; in setTextureLevel()
162 mipmap.vFrac = 16 - logHeight; in setTextureLevel()
163 mipmap.wFrac = 16 - logDepth; in setTextureLevel()
167 mipmap.fWidth[0] = (float)width / 65536.0f; in setTextureLevel()
168 mipmap.fWidth[1] = (float)width / 65536.0f; in setTextureLevel()
169 mipmap.fWidth[2] = (float)width / 65536.0f; in setTextureLevel()
170 mipmap.fWidth[3] = (float)width / 65536.0f; in setTextureLevel()
172 mipmap.fHeight[0] = (float)height / 65536.0f; in setTextureLevel()
173 mipmap.fHeight[1] = (float)height / 65536.0f; in setTextureLevel()
174 mipmap.fHeight[2] = (float)height / 65536.0f; in setTextureLevel()
175 mipmap.fHeight[3] = (float)height / 65536.0f; in setTextureLevel()
177 mipmap.fDepth[0] = (float)depth / 65536.0f; in setTextureLevel()
178 mipmap.fDepth[1] = (float)depth / 65536.0f; in setTextureLevel()
179 mipmap.fDepth[2] = (float)depth / 65536.0f; in setTextureLevel()
180 mipmap.fDepth[3] = (float)depth / 65536.0f; in setTextureLevel()
187 mipmap.uHalf[0] = halfTexelU; in setTextureLevel()
188 mipmap.uHalf[1] = halfTexelU; in setTextureLevel()
189 mipmap.uHalf[2] = halfTexelU; in setTextureLevel()
190 mipmap.uHalf[3] = halfTexelU; in setTextureLevel()
192 mipmap.vHalf[0] = halfTexelV; in setTextureLevel()
193 mipmap.vHalf[1] = halfTexelV; in setTextureLevel()
194 mipmap.vHalf[2] = halfTexelV; in setTextureLevel()
195 mipmap.vHalf[3] = halfTexelV; in setTextureLevel()
197 mipmap.wHalf[0] = halfTexelW; in setTextureLevel()
198 mipmap.wHalf[1] = halfTexelW; in setTextureLevel()
199 mipmap.wHalf[2] = halfTexelW; in setTextureLevel()
200 mipmap.wHalf[3] = halfTexelW; in setTextureLevel()
202 mipmap.width[0] = width; in setTextureLevel()
203 mipmap.width[1] = width; in setTextureLevel()
204 mipmap.width[2] = width; in setTextureLevel()
205 mipmap.width[3] = width; in setTextureLevel()
207 mipmap.height[0] = height; in setTextureLevel()
208 mipmap.height[1] = height; in setTextureLevel()
209 mipmap.height[2] = height; in setTextureLevel()
210 mipmap.height[3] = height; in setTextureLevel()
212 mipmap.depth[0] = depth; in setTextureLevel()
213 mipmap.depth[1] = depth; in setTextureLevel()
214 mipmap.depth[2] = depth; in setTextureLevel()
215 mipmap.depth[3] = depth; in setTextureLevel()
217 mipmap.onePitchP[0] = 1; in setTextureLevel()
218 mipmap.onePitchP[1] = pitchP; in setTextureLevel()
219 mipmap.onePitchP[2] = 1; in setTextureLevel()
220 mipmap.onePitchP[3] = pitchP; in setTextureLevel()
222 mipmap.sliceP[0] = sliceP; in setTextureLevel()
223 mipmap.sliceP[1] = sliceP; in setTextureLevel()
234 mipmap.buffer[1] = (byte*)mipmap.buffer[0] + YSize; in setTextureLevel()
235 mipmap.buffer[2] = (byte*)mipmap.buffer[1] + CSize; in setTextureLevel()
237 texture.mipmap[1].uFrac = texture.mipmap[0].uFrac + 1; in setTextureLevel()
238 texture.mipmap[1].vFrac = texture.mipmap[0].vFrac + 1; in setTextureLevel()
239 texture.mipmap[1].width[0] = width / 2; in setTextureLevel()
240 texture.mipmap[1].width[1] = width / 2; in setTextureLevel()
241 texture.mipmap[1].width[2] = width / 2; in setTextureLevel()
242 texture.mipmap[1].width[3] = width / 2; in setTextureLevel()
243 texture.mipmap[1].height[0] = height / 2; in setTextureLevel()
244 texture.mipmap[1].height[1] = height / 2; in setTextureLevel()
245 texture.mipmap[1].height[2] = height / 2; in setTextureLevel()
246 texture.mipmap[1].height[3] = height / 2; in setTextureLevel()
247 texture.mipmap[1].onePitchP[0] = 1; in setTextureLevel()
248 texture.mipmap[1].onePitchP[1] = CStride; in setTextureLevel()
249 texture.mipmap[1].onePitchP[2] = 1; in setTextureLevel()
250 texture.mipmap[1].onePitchP[3] = CStride; in setTextureLevel()
387 if(texture.mipmap[0].buffer[0] != texture.mipmap[i].buffer[0]) in mipmapFilter()
407 if(texture.mipmap[i].width[0] != texture.mipmap[i].onePitchP[1]) in hasNPOTTexture()
413 …return !isPow2(texture.mipmap[0].width[0]) || !isPow2(texture.mipmap[0].height[0]) || !isPow2(text… in hasNPOTTexture()