Lines Matching refs:uniformBuffers
57 GLES1UniformBuffers &uniformBuffers = mUniformBuffers; in prepareForDraw() local
80 uniformBuffers.clipPlaneEnables[i] = glState->getEnableFeature(GL_CLIP_PLANE0 + i); in prepareForDraw()
81 enableClipPlanes = enableClipPlanes || uniformBuffers.clipPlaneEnables[i]; in prepareForDraw()
89 std::array<GLint, kTexUnitCount> &tex2DEnables = uniformBuffers.tex2DEnables; in prepareForDraw()
90 std::array<GLint, kTexUnitCount> &texCubeEnables = uniformBuffers.texCubeEnables; in prepareForDraw()
94 Vec4Uniform *cropRectBuffer = uniformBuffers.texCropRects.data(); in prepareForDraw()
203 Mat4Uniform *textureMatrixBuffer = uniformBuffers.textureMatrices.data(); in prepareForDraw()
212 reinterpret_cast<float *>(uniformBuffers.textureMatrices.data())); in prepareForDraw()
221 uniformBuffers.texEnvModes[i] = ToGLenum(env.mode); in prepareForDraw()
222 uniformBuffers.texCombineRgbs[i] = ToGLenum(env.combineRgb); in prepareForDraw()
223 uniformBuffers.texCombineAlphas[i] = ToGLenum(env.combineAlpha); in prepareForDraw()
225 uniformBuffers.texCombineSrc0Rgbs[i] = ToGLenum(env.src0Rgb); in prepareForDraw()
226 uniformBuffers.texCombineSrc0Alphas[i] = ToGLenum(env.src0Alpha); in prepareForDraw()
227 uniformBuffers.texCombineSrc1Rgbs[i] = ToGLenum(env.src1Rgb); in prepareForDraw()
228 uniformBuffers.texCombineSrc1Alphas[i] = ToGLenum(env.src1Alpha); in prepareForDraw()
229 uniformBuffers.texCombineSrc2Rgbs[i] = ToGLenum(env.src2Rgb); in prepareForDraw()
230 uniformBuffers.texCombineSrc2Alphas[i] = ToGLenum(env.src2Alpha); in prepareForDraw()
232 uniformBuffers.texCombineOp0Rgbs[i] = ToGLenum(env.op0Rgb); in prepareForDraw()
233 uniformBuffers.texCombineOp0Alphas[i] = ToGLenum(env.op0Alpha); in prepareForDraw()
234 uniformBuffers.texCombineOp1Rgbs[i] = ToGLenum(env.op1Rgb); in prepareForDraw()
235 uniformBuffers.texCombineOp1Alphas[i] = ToGLenum(env.op1Alpha); in prepareForDraw()
236 uniformBuffers.texCombineOp2Rgbs[i] = ToGLenum(env.op2Rgb); in prepareForDraw()
237 uniformBuffers.texCombineOp2Alphas[i] = ToGLenum(env.op2Alpha); in prepareForDraw()
239 uniformBuffers.texEnvColors[i][0] = env.color.red; in prepareForDraw()
240 uniformBuffers.texEnvColors[i][1] = env.color.green; in prepareForDraw()
241 uniformBuffers.texEnvColors[i][2] = env.color.blue; in prepareForDraw()
242 uniformBuffers.texEnvColors[i][3] = env.color.alpha; in prepareForDraw()
244 uniformBuffers.texEnvRgbScales[i] = env.rgbScale; in prepareForDraw()
245 uniformBuffers.texEnvAlphaScales[i] = env.alphaScale; in prepareForDraw()
247 uniformBuffers.pointSpriteCoordReplaces[i] = env.pointSpriteCoordReplace; in prepareForDraw()
251 uniformBuffers.texEnvModes.data()); in prepareForDraw()
253 uniformBuffers.texCombineRgbs.data()); in prepareForDraw()
255 uniformBuffers.texCombineAlphas.data()); in prepareForDraw()
258 uniformBuffers.texCombineSrc0Rgbs.data()); in prepareForDraw()
260 uniformBuffers.texCombineSrc0Alphas.data()); in prepareForDraw()
262 uniformBuffers.texCombineSrc1Rgbs.data()); in prepareForDraw()
264 uniformBuffers.texCombineSrc1Alphas.data()); in prepareForDraw()
266 uniformBuffers.texCombineSrc2Rgbs.data()); in prepareForDraw()
268 uniformBuffers.texCombineSrc2Alphas.data()); in prepareForDraw()
271 uniformBuffers.texCombineOp0Rgbs.data()); in prepareForDraw()
273 uniformBuffers.texCombineOp0Alphas.data()); in prepareForDraw()
275 uniformBuffers.texCombineOp1Rgbs.data()); in prepareForDraw()
277 uniformBuffers.texCombineOp1Alphas.data()); in prepareForDraw()
279 uniformBuffers.texCombineOp2Rgbs.data()); in prepareForDraw()
281 uniformBuffers.texCombineOp2Alphas.data()); in prepareForDraw()
284 reinterpret_cast<float *>(uniformBuffers.texEnvColors.data())); in prepareForDraw()
286 uniformBuffers.texEnvRgbScales.data()); in prepareForDraw()
288 uniformBuffers.texEnvAlphaScales.data()); in prepareForDraw()
291 kTexUnitCount, uniformBuffers.pointSpriteCoordReplaces.data()); in prepareForDraw()
336 uniformBuffers.lightEnables[i] = light.enabled; in prepareForDraw()
337 memcpy(uniformBuffers.lightAmbients.data() + i, light.ambient.data(), in prepareForDraw()
339 memcpy(uniformBuffers.lightDiffuses.data() + i, light.diffuse.data(), in prepareForDraw()
341 memcpy(uniformBuffers.lightSpeculars.data() + i, light.specular.data(), in prepareForDraw()
343 memcpy(uniformBuffers.lightPositions.data() + i, light.position.data(), in prepareForDraw()
345 memcpy(uniformBuffers.lightDirections.data() + i, light.direction.data(), in prepareForDraw()
347 uniformBuffers.spotlightExponents[i] = light.spotlightExponent; in prepareForDraw()
348 uniformBuffers.spotlightCutoffAngles[i] = light.spotlightCutoffAngle; in prepareForDraw()
349 uniformBuffers.attenuationConsts[i] = light.attenuationConst; in prepareForDraw()
350 uniformBuffers.attenuationLinears[i] = light.attenuationLinear; in prepareForDraw()
351 uniformBuffers.attenuationQuadratics[i] = light.attenuationQuadratic; in prepareForDraw()
355 uniformBuffers.lightEnables.data()); in prepareForDraw()
357 reinterpret_cast<float *>(uniformBuffers.lightAmbients.data())); in prepareForDraw()
359 reinterpret_cast<float *>(uniformBuffers.lightDiffuses.data())); in prepareForDraw()
361 reinterpret_cast<float *>(uniformBuffers.lightSpeculars.data())); in prepareForDraw()
363 reinterpret_cast<float *>(uniformBuffers.lightPositions.data())); in prepareForDraw()
365 reinterpret_cast<float *>(uniformBuffers.lightDirections.data())); in prepareForDraw()
367 reinterpret_cast<float *>(uniformBuffers.spotlightExponents.data())); in prepareForDraw()
369 reinterpret_cast<float *>(uniformBuffers.spotlightCutoffAngles.data())); in prepareForDraw()
371 reinterpret_cast<float *>(uniformBuffers.attenuationConsts.data())); in prepareForDraw()
373 reinterpret_cast<float *>(uniformBuffers.attenuationLinears.data())); in prepareForDraw()
375 reinterpret_cast<float *>(uniformBuffers.attenuationQuadratics.data())); in prepareForDraw()
394 uniformBuffers.clipPlaneEnables[i] = glState->getEnableFeature(GL_CLIP_PLANE0 + i); in prepareForDraw()
395 enableClipPlanes = enableClipPlanes || uniformBuffers.clipPlaneEnables[i]; in prepareForDraw()
397 i, reinterpret_cast<float *>(uniformBuffers.clipPlanes.data() + i)); in prepareForDraw()
402 uniformBuffers.clipPlaneEnables.data()); in prepareForDraw()
404 reinterpret_cast<float *>(uniformBuffers.clipPlanes.data())); in prepareForDraw()