Home
last modified time | relevance | path

Searched refs:kMaxLights (Results 1 – 4 of 4) sorted by relevance

/hardware/google/gfxstream/host/gl/glestranslator/GLES_CM/
DCoreProfileEngine.h194 static constexpr int kMaxLights = 8; variable
196 GLint lightEnables[kMaxLights];
197 GLfloat lightAmbients[4 * kMaxLights];
198 GLfloat lightDiffuses[4 * kMaxLights];
199 GLfloat lightSpeculars[4 * kMaxLights];
200 GLfloat lightPositions[4 * kMaxLights];
201 GLfloat lightDirections[3 * kMaxLights];
202 GLfloat spotlightExponents[kMaxLights];
203 GLfloat spotlightCutoffAngles[kMaxLights];
204 GLfloat attenuationConsts[kMaxLights];
[all …]
DCoreProfileEngine.cpp921 assert(kMaxLights == GLEScmContext::kMaxLights); in setupLighting()
923 for (int i = 0; i < GLEScmContext::kMaxLights; i++) { in setupLighting()
938 …gl.glUniform1iv(m_geometryDrawState.lightEnablesLoc, GLEScmContext::kMaxLights, m_lightingBuffer.l… in setupLighting()
939 …gl.glUniform4fv(m_geometryDrawState.lightAmbientsLoc, GLEScmContext::kMaxLights, m_lightingBuffer.… in setupLighting()
940 …gl.glUniform4fv(m_geometryDrawState.lightDiffusesLoc, GLEScmContext::kMaxLights, m_lightingBuffer.… in setupLighting()
941 …gl.glUniform4fv(m_geometryDrawState.lightSpecularsLoc, GLEScmContext::kMaxLights, m_lightingBuffer… in setupLighting()
942 …gl.glUniform4fv(m_geometryDrawState.lightPositionsLoc, GLEScmContext::kMaxLights, m_lightingBuffer… in setupLighting()
943 …gl.glUniform3fv(m_geometryDrawState.lightDirectionsLoc, GLEScmContext::kMaxLights, m_lightingBuffe… in setupLighting()
944 …gl.glUniform1fv(m_geometryDrawState.lightSpotlightExponentsLoc, GLEScmContext::kMaxLights, m_light… in setupLighting()
945 …gl.glUniform1fv(m_geometryDrawState.lightSpotlightCutoffAnglesLoc, GLEScmContext::kMaxLights, m_li… in setupLighting()
[all …]
DGLEScmContext.h184 static constexpr int kMaxLights = 8; variable
252 Light mLights[kMaxLights] = {};
DGLEScmContext.cpp278 android::base::saveBuffer<Light>(stream, mLights, kMaxLights); in onSave()
398 for (int i = 0; i < kMaxLights; i++) { in postLoadRestoreCtx()
1365 if (lightIndex >= kMaxLights) { in lightf()
1412 if (lightIndex >= kMaxLights) { in lightfv()
1466 if (lightIndex >= kMaxLights) { in getLightfv()