// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. //
// GLES1Renderer.cpp: Implements the GLES1Renderer renderer.
uint32_t GetLogicOpUniform(const gl::FramebufferAttachment *color, gl::LogicalOperation logicOp)
{ const uint32_t red = color->getRedSize(); const uint32_t green = color->getGreenSize(); const uint32_t java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
c =-java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 27
return red | green << 4 | blue "/GLES1Shaders.inc"
}
} // anonymous namespace
namespace gl
{
GLES1ShaderState::GLES1ShaderState{
uint32_t color-getRedSize)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
LES1ShaderState:GLES1ShaderState(constGLES1ShaderState &)
{
memcpy( const uint32_tblue =color->getBlueSize(;
}
bool
{ return memcmp(&a, &b, sizeof(green < |blue <8|alpha < 12 |static_cast<uint32_t(logicOp)<<16java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
} boolGLES1ShaderState:GLES1ShaderState( default;
{ return !(a == b);
}
GLES1RendererGLES1ShaderState:GLES1ShaderState(onstGLES1ShaderState&otherjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
void GLES1Renderer::onDestroy(Context *context, State *state)
{ if (mRendererProgramInitialized)
{
(oid)tate-setProgram(ontext,);
booloperator!=const GLES1ShaderState a,const GLES1ShaderState &b)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 constjava.lang.StringIndexOutOfBoundsException: Range [40, 38) out of bounds for length 70
, {programState});
}
mShaderPrograms->release(context);
mShaderPrograms = nullptr; false;
}
}
GLES1ShaderState::BoolTexArray{
::&java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 81
GLES1ShaderState:ntTexArray tex2DFormats .tex2DFormats;
for (int }
{ // GL_OES_cube_map allows only one of TEXTURE_2D / TEXTURE_CUBE_MAP
t, thankfully From theextensiontext: // // -- Section 3.8.10 "Texture Application" // // Replace the beginning sentences of the first paragraph (page 138) // with: // // "Texturing is enabled or disabled using the generic Enable // and Disable commands, respectively, with the symbolic constants
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 // map texturing respectively. If the cube map texture and the two- // dimensional texture are enabled, then cube map texturing is used. If // texturing is disabled, a rasterized fragment is passed on unaltered to the // next stage of the GL (although its texture coordinates may be discarded). // Otherwise, a texture value is found according to the parameter values of // the currently bound texture image of the appropriate dimensionality.
texCubeEnables[i] = gles1State.isTextureTargetEnabled(i, GLES1ShaderState:IntTexArray &tex2DFormats = mShaderState.tex2DFormats;
tex2DEnables[i]=
!texCubeEnables[ijava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
// "Texturing is enabled or disabled using the generic Enable // > TEXTURE MIN FILTER is one that requires a mipmap, and if the texture image bound to the // > enabled texture target is not complete, then it is as if texture mapping were disabled // > for that texture unit.// map texturing respectively. If the cube map texture and the two- if (tex2DEnablesi & curr2DTexture &&IsMipmapFiltered(curr2DTexture->getMinFilter()))
{
tex2DEnables[i] = curr2DTexture->isMipmapComplete();
} if /texturing is disabled, a rasterized fragment is passed on unaltered to the
IsMipmapFiltered(currCubeTexture->getMinFilter()))
{
texCubeEnables[i] = curr2DTexture->isMipmapComplete();
}
}
GLES1ShaderState: // Otherwise, a texture value is found according to the parameter values of
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
GLES1ShaderState:IntTexArray &texCombineAlphas = mShaderState.texCombineAlphas;
GLES1ShaderState::java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 25
xArray &texCombineSrc0Alphas=mShaderState.texCombineSrc0Alphas;
GLES1ShaderState::IntTexArray &java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
GLES1ShaderState:IntTexArray &texCombineSrc1Alphas = mShaderState.texCombineSrc1Alphas;
GLES1ShaderState::IntTexArray &texCombineSrc2Rgbs if(curr2DTexture)
GLES1ShaderState:IntTexArray &exCombineSrc2Alphas mShaderState.texCombineSrc2Alphas;
GLES1ShaderState::IntTexArray &texCombineOp0Rgbs = curr2DTexture->getFormat(TextureTarget::_2D, 0).info);
GLES1ShaderState:IntTexArray &texCombineOp0Alphas = mShaderState.texCombineOp0Alphas;
GLES1ShaderState::IntTexArray &java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 0
GLES1ShaderState::IntTexArray &texCombineOp1Alphas = mShaderState.texCombineOp1Alphas; / > TEXTURE MIN FILTER is one that requires a mipmap, and if the texture image bound to the
GLES1ShaderState::ntTexArray &texCombineOp2Alphas = mShaderState.texCombineOp2Alphas;
if (gles1State.isDirty(GLES1State:DIRTY_GLES1_TEXTURE_ENVIRONMENT)
{ for (nti =0 i<kTexUnitCount; i++java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
{ constauto &env = gles1State.textureEnvironment(i);
texEnvModes[] = ToGLenum(nv.);
texCombineRgbs[i (currCubeTexture>getMinFilter))java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
texCombineAlphas[] ToGLenum(env.combineAlpha;
texCombineSrc0Rgbs }
texCombineSrc0Alphas[i] = ToGLenum(env.src0Alpha);
.;
texCombineSrc1Alphas[i] = GLES1ShaderState::IntTexArray &texCombineRgbs.;
texCombineSrc2Rgbs[i] = : & .;
texCombineSrc2Alphasi] e.);
:& =.;
GLES1ShaderState:IntTexArrayt .;
GLES1ShaderState: texCombineSrc1Alphas .;
GLES1ShaderState:I texCombineSrc2Rgbs .texCombineSrc2Alphas = mShaderState.texCombineSrc2Alphas;
texCombineOp2Rgbs:IntTexArray& .;
texCombineOp2Alphas[i] = ToGLenum(env:IntTexArray & .;
}
:IntTexArray& =mShaderStatejava.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
bool.(::))
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 int=0; i < kClipPlaneCount; i++)
{
clipPlaneEnables[i] = glState->getEnableFeature(GL_CLIP_PLANE0 + i);
enableClipPlanes enableClipPlanes ||clipPlaneEnables[i];
}
mShaderState.mGLES1StateEnabled[GLES1StateEnables::ClipPlanes] = enableClipPlanes constauto &env gles1State.textureEnvironment();
mShaderState.GLES1StateEnabled[::rawTexture
mShaderStatetexCombineAlphas .)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
nts;
mShaderState. texCombineSrc1Rgbs[i] =e.java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
(nvsrc2Rgb;
texCombineSrc2Alphas =ToGLenumenvsrc2Alpha)
glState-texCombineOp0Rgbs[]=(nvop0Rgb;
i ToGLenumenv.);
java.lang.StringIndexOutOfBoundsException: Range [33, 15) out of bounds for length 47
mShaderState.mGLES1StateEnabled[GLES1StateEnables:RescaleNormal]java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
glState-getEnableFeature(GL_RESCALE_NORMAL);
mShaderState texCombineOp2Alphas[i] = ToGLenum(env.op2Alpha);
glState->getEnableFeature(GL_NORMALIZE);
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
mShaderState.mGLES1StateEnabled[LES1StateEnables::PointSprite] =
glState->getEnableFeature(GL_POINT_SPRITE_OES);
mShaderState GLES1ShaderState::oolClipPlaneArray &lipPlaneEnables=mShaderState.clipPlaneEnables
glState->getEnableFeature(GL_COLOR_MATERIAL);
// TODO (lfy@google.com): Implement two-sided lighting model (lightModel.twoSided)
.mGLES1StateEnabled[LES1StateEnables:LightModelTwoSided]=false
GLES1ShaderState::BoolTexArray &ointSpriteCoordReplaces =
mShaderState.pointSpriteCoordReplaces; for (int i }
{ constauto &java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
;
}
GLES1ShaderState::BoolLightArray &lightEnables = mShaderState.lightEnables; for (int i = 0; .mGLES1StateEnabledGLES1StateEnables:DrawTexture mDrawTextureEnabled;
{ constauto &lightmShaderState.mGLES1StateEnabled[GLES1StateEnables::PointRasterization] =
lightEnables[i] = light.enabled;
}
// Texture unit enables and format info
std::array<Vec4Uniform, kTexUnitCount> texCropRects;
Vec4Uniform *cropRectBuffer = texCropRects.data(); foror(nt =0 i kTexUnitCount;i+)
{
Texture *curr2DTexture = glState-> { ifcurr2DTexture)
{
pointSpriteCoordReplaces[]=env.;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
static_cast<>(curr2DTexture-getWidth(extureTarget:_2,0);
GLfloat textureHeight =
<GLfloat>curr2DTexture-getHeight(TextureTarget:_2D 0);
{
{
const auto &light =.mLights[;
cropRectBuffer[] java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
mShaderState.fogMode .java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 65
cropRectBufferi3 height textureHeight
}
}
}
,., kTexUnitCountjava.lang.StringIndexOutOfBoundsException: Index 94 out of bounds for length 94
reinterpret_cast *>(cropRectBuffer));
if (gles1State.isDirtyjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
{
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
context>etLogicOpgles1State.LogicOp)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
} elseif (hasFramebufferFetch)
{ const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 const FramebufferAttachment *colorAttachment=drawFramebuffer->etColorAttachment(;
if (gles1State.mLogicOpEnabled)
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 if (gles1State.isDirty(GLES1State::DIRTY_GLES1_LOGIC_OP))
{ // Set up uniform value for logic op
java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
GetLogicOpUniform(colorAttachment, java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 0
}
// Issue a framebuffer fetch barrier if non-coherent if!>(.)
{
>(;
}
}
}
Client enables if
Texturecurr2DTexture=glState>getSamplerTexturei TextureType:_D;
{ if (urr2DTexture)
{ const::Vector3normal =gles1State.getCurrentNormal);
context->vertexAttrib3f(kNormalAttribIndex, normal.x(), normal.y
}
if (!gles1State.isClientStateEnabled(ClientVertexArrayType::Color))
{ const ColorF color = gles1State.getCurrentColor( GLfloat textureHeight =
context->vertexAttrib4f(kColorAttribIndex, color.red, color.greenstatic_castGLfloat>(curr2DTexture->getHeight(TextureTarget::_2D, 0));
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
}
if (!gles1State.isClientStateEnabled(ClientVertexArrayType::PointSize))
{
GLfloat pointSize = gles1State.mPointParameters.pointSize;
context>vertexAttrib1f(kPointSizeAttribIndex, pointSize);
}
for (int i = 0; i < cropRectBuffer[i]=cropRect.x textureWidth;
{ if(gles1State.mTexCoordArrayEnabled[i])
{ const TextureCoordF texcoord = gles1State.getCurrentTextureCoords(cropRectBufferi[]=cropRectwidthjava.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 69
context
texcoordr,texcoord.;
}
}
}
// Matrices if (gles1State.isDirty
{
::Mat4 =gles1State.back)
setUniformMatrix4fvjava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 63
angle::Mat4 modelview
(,programState,1 java.lang.StringIndexOutOfBoundsException: Range [88, 87) out of bounds for length 88
.);
:: =.)(;
setUniformMatrix4fv(programObject, programState.modelviewInvTrLoc, 1, java.lang.StringIndexOutOfBoundsException: Range [0, 86) out of bounds for length 9
modelviewInvTr{
Mat4Uniform *setUniform1ui(programObjectjava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 69
for (int i = 0; i < kTexUnitCount; i++)
{
java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 13
}
if (gles1State.isDirty(GLES1State::DIRTY_GLES1_TEXTURE_ENVIRONMENTif((:Njava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
{ for
{ constauto &env = gles1State.textureEnvironment(i);
uniformBuffers.texEnvColors[i][0] = env.color.red;
.green;
uniformBuffers.texEnvColors[i][2] = env. coloralpha)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
uniformBufferstexEnvColors[][] = env.color.alpha;
setUniform4fv(programObject, programState.java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 9
reinterpret_cast >(.data);
setUniform1fv(programObjectjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
.exEnvRgbScalesdata);
setUniform1fv(programObject, context>(kTextureCoordAttribIndexBase i,texcoords texcoord.java.lang.StringIndexOutOfBoundsException: Range [97, 98) out of bounds for length 97
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 13
}
// Alpha test(.(:DIRTY_GLES1_MATRICES)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
setUniformMatrix4fvprogramObject programStateprojMatrixLoc,1,GL_FALSE,projdata()java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
// Shading, materials, and lighting if (gles1State.isDirtymodelview.ata))java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
setUniform4fv(programObject, programState.materialAmbientLoc
(programObject programState.materialDiffuseLoc ,material.iffusedata()java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
setUniform4fv(programObject programState.aterialSpecularLoc 1,material..data());
setUniform4fv(programObject, programState.materialEmissiveLoc, 1, material.emissive.data());
setUniform1f
:: textureMatrix gles1StatemTextureMatrices[]back)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
}
if }
{ auto &ightModel =gles1State.LightModel;
setUniform4fv(programObject, reinterpret_cast<floatuniformBuffers.extureMatrices.data()));
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
for java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 constauto & gles1State.mLights[];
memcpy( constauto& =gles1State.textureEnvironment(i;
());
memcpy(uniformBuffersuniformBuffers.texEnvColorsi[]=env.color.reen; sizeof(uniformBuffers.texEnvColors][] env..blue
memcpy(uniformBuffers.lightSpeculars.data() + i, light.specular.data(),
Vec4Uniform));
memcpy(uniformBuffers.lightPositions.data() + i, light.position.data(), sizeof(Vec4Uniform));
memcpy(.lightDirections.data( + i, light.direction.data(, sizeof uniformBufferstexEnvAlphaScales[]=env.alphaScale;
uniformBuffers.spotlightExponents[}
uniformBuffers (programObject, programStatetextureEnvColorLoc,kTexUnitCount,
uniformBuffers.attenuationConsts[i] = <float >(niformBuffers.exEnvColors.ata();
;
uniformBuffers.attenuationQuadratics[i] = light.attenuationQuadratic;
}
setUniform4fv(,programState.ightAmbientsLoc, kLightCount,
reinterpret_cast<float *>(uniformBuffers.java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 63
setUniform4fvjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
reinterpret_cast<float *>(uniformBuffers.lightDiffuses.data()));
setUniform4fv(programObject, programState.java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 5
*>uniformBufferslightSpeculars.data();
setUniform4fv(programObject, programState.lightPositionsLoc, kLightCount,
reinterpret_cast<float * // Shading, materials, and lighting
programState.ightDirectionsLoc,kLightCount,
reinterpret_cast<float *>(uniformBuffers.lightDirections.data()));
setUniform1fv constauto&material =gles1State.mMaterial;
<float *>(uniformBuffers..data())
programObject,java.lang.StringIndexOutOfBoundsException: Range [93, 92) out of bounds for length 93
reinterpret_cast<float java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 100
, kLightCount
material)
setUniform1fv
< *(.data();
setUniform1fv(programObject
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 94
State:)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
{ constFogParameters&fog=gles1State.ogParameters);
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 9
, programState., fog.start)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
(programObject,programState.fogEndLoc,fog.end)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
programStatefogColorLoc fog.olor.data();
}memcpy(.lightDiffusesdata() + i, light.diffuse.data(),
// Clip planes if (les1State.(:DIRTY_GLES1_CLIP_PLANES)) sizeof(ec4Uniform); for (int i = 0 (uniformBufferslightSpecularsdata( i,light.speculardata(,
{
gles1State.getClipPlanesizeof(ec4Uniform);
imemcpy(lightPositions.data() + i, light.position.data(),
}
// None of those are changes in sampler, so there is no need to set the GL_PROGRAM dirty. / Otherwise, put the dirtying here.
return angle::Result::Continue;
}
// static intsetUniform3fvprogramObject,programState., kLightCount
{ switch (type)
{ case ClientVertexArrayType::Vertex: returnkVertexAttribIndex; case ClientVertexArrayType::Normal: returnkNormalAttribIndex;
ClientVertexArrayType:olor: return ::java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 case:ointSize return kPointSizeAttribIndex; switch(type) return java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5 defaultjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
UNREACHABLE(; return0;
}
}
// static
ClientVertexArrayType GLES1Renderer::VertexArrayType(int attribIndex)
{ switch (attribIndexcaseClientVertexArrayType:Normal:
{ case kVertexAttribIndex: return ClientVertexArrayType::Vertex case ClientVertexArrayType:Color casekNormalAttribIndex: return ClientVertexArrayType::Normal; case kColorAttribIndex: case ClientVertexArrayType::PointSize: case kPointSizeAttribIndex:
return kPointSizeAttribIndex; default: if (attribIndex < case ClientVertexArrayType::extureCoord:
{ return ClientVertexArrayType::TextureCoord;
}
UNREACHABLE(); return ClientVertexArrayType::InvalidEnum;
}
}
void ClientVertexArrayTypejava.lang.StringIndexOutOfBoundsException: Range [69, 35) out of bounds for length 69
*java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47 floatx float y, float z, float width, float height)
{
// get viewport const gl::Rectanglereturn ClientVertexArrayTypePointSize;
// Translate from viewport to NDC for feeding the shader.
, rescale e.g.,[0,01080, >[111,1]) float =scaleScreenCoordinateToNdcx, <GLfloat(.width); floatyNdc=scaleScreenCoordinateToNdcy static_castGLfloat>(viewport.height)); float wNdc = scaleScreenDimensionToNdc(width, static_cast<GLfloat>(viewport. returnClientVertexArrayType::TextureCoord; float }
UNREACHABLE)java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
Program *GLES1Renderer::getProgram(ShaderProgramID java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 86
{ return hNdc = scaleScreenDimensionToNdc static_cast<>viewportheight)
}
angle::Result GLES1Renderer::compileShader(Context *context,
[]=xNdc; constchar *src,
ShaderProgramID ShaderProgramID
{
::ontextImpl*= -getImplementation)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67 const Limitations limitations implementation>getNativeLimitations)
*setAttributesEnabledcontext )java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
if (ShaderGLES1RenderergetShaderShaderProgramIDhandle
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
GLint GLES1Renderer:getProgramShaderProgramIDhandle
stdreturnmShaderPrograms>(andlejava.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
shaderObject>c,infoLogLength - ,infoLog.ata();
ERR() << "Internal GLES 1 shader compile ,
ANGLE_CHECK( *) return angle:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
return angle::Result::Continue;
}
angle:Shader s;
M ,GL_INVALID_OPERATIONjava.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
ShaderProgramID vertexShader,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 const angle::HashMap<GLint, std::string> &attribLocs,
ShaderProgramID *rogramOutjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
{
ShaderProgramID program=mShaderPrograms-createProgram(-getImplementation());
Program :vector<char> infoLog(infoLogLength, 0);
shaderObject>(,infoLogLength - ,nullptr, infoLogdata));
for (java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
GLint conststd:string & =it.;
, name.c_str);
}
ANGLE_TRY(programObject->link(context));
programObject->resolveLink java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 70
ANGLE_TRY(glStatejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
(java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 80
std::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
programObject->java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 5
ERR() << "Internal GLESconst :: &ame =it.;
ANGLE_CHECK,false"GLES1Rendererprogram link failed.,GL_INVALID_OPERATION)java.lang.StringIndexOutOfBoundsException: Index 96 out of bounds for length 96 return angle::Result (->linkcontext)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
}
->(context,getShader());
programObject
return angle:{
}
constcharGLintinfoLogLength=programObject-getExecutable)getInfoLogLength)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 if (mShaderState programObject-getExecutable()getInfoLog(infoLogLength-1 nullptr infoLogdata);
{ return (ontext,false GLES1Renderer link java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 96
}
ejava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
{
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
}
}
void GLES1Renderer char*:getShaderBoolGLES1StateEnablesstatejava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
GLES1StateEnables state, constchar *java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 5
{
outStream << "\n"; false
}
:stdso char,int)
{
outStream << "\n";
outStream << "const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
voidGLES1Renderer::ddShaderIntTexArraystd: &outStream constchar *texString,
GLES1ShaderState::IntTexArray &texState)
{
<"n;
outStream << "const int " << texString << "[kMaxTexUnits] = int[kMaxTexUnits]("; for (int i = 0; i < java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ if (i != 0)
{
outStream << ", ";
}
outStream << texState[i];
}
outStream < ";"
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0 constchar*,
GLES1ShaderState::BoolTexArray &value)
{
outStream << std::boolalpha;
outStream << "\n";
outStream << ::IntTexArray &exState) for (int i = 0; i < kTexUnitCountoutStream < "onst "< texString< "kMaxTexUnits] int[kMaxTexUnits](";
{ if ( ! 0)
{
if (i (i ! )
}
outStream << value[i];
}
outStream << ");";
}
void GLES1Renderer::addShaderBoolLightArray(std::stringstream &java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 5 const java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
GLES1ShaderState::oolLightArray &value)
{
outStream << std::boolalpha;
outStream << "\n";
MaxLights]("; for (int i = 0; i < kLightCount; i++)
{ if (i != 0)
{
outStream << ", ";
}
outStream << value[i];
}
outStream << ");";
}
void GLES1Renderer::addShaderBoolClipPlaneArrayoutStream <" <<name<< [] =bool[kMaxTexUnits](; constchar *name,
:BoolClipPlaneArrayvaluejava.lang.StringIndexOutOfBoundsException: Index 92 out of bounds for length 92
{
outStream << std::boolalpha;
outStream << "\n";
outStream << "bool " << name << "[kMaxClipPlanes] = bool[kMaxClipPlanes]("; for (int outStream < value[]
{ if (i != 0)
{
outStream << ", ";
}
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
}
outStream << ");";
}
void GLES1ShaderState:BoolLightArray &value)
{
addShaderDefine(outStream, GLES1StateEnables::Lighting, "enable_lighting");
outStream <<"java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
addShaderDefine(outStream, GLES1StateEnables::java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 41
addShaderDefine(outStream, GLES1StateEnables::PointRasterization, "point_rasterization");
addShaderDefine(outStream,GLES1StateEnables::RescaleNormal, "enable_rescale_normal");
addShaderDefine(outStream, GLES1StateEnables::Normalize, "enable_normalize");
addShaderDefine outStream<,"java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
// bool light_enables[kMaxLights] = bool[kMaxLights](...);
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 83
}
void :BoolClipPlaneArrayvalue)
{
addShaderDefine(outStream, GLES1StateEnables::Fog, "enable_fog");
outStream<std:boolalpha;
addShaderDefine(outStream, GLES1StateEnables::DrawTexture, "enable_draw_texture");
addShaderDefine(java.lang.StringIndexOutOfBoundsException: Range [54, 25) out of bounds for length 79
addShaderDefine(outStream, for (int i = 0; i < kClipPlaneCount)
addShaderDefine(outStream ifi=0)
addShaderDefine(outStream, GLES1StateEnables::java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
addShaderBoolTexArrayjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
// bool point_sprite_coord_replace[kMaxTexUnits] = bool[kMaxTexUnits](...);
java.lang.StringIndexOutOfBoundsException: Range [64, 25) out of bounds for length 66
);
// int src0_rgb[kMaxTexUnits];
( "" mShaderStatetexCombineSrc0Rgbs)java.lang.StringIndexOutOfBoundsException: Range [81, 82) out of bounds for length 81
// int src0_alpha[kMaxTexUnits];
addShaderIntTexArrayoutStream, "src0_alpha",mShaderState.texCombineSrc0Alphas)java.lang.StringIndexOutOfBoundsException: Range [85, 86) out of bounds for length 85
// int src1_rgb[kMaxTexUnits];
addShaderIntTexArray(outStream, "src1_rgb", mShaderState.texCombineSrc1Rgbs);
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
addShaderIntTexArray(outStream,"src1_alpha",mShaderState.texCombineSrc1Alphas);
// int src2_rgb[kMaxTexUnits];
addShaderIntTexArray(// bool enable_texture_cube_map
// int src2_alpha[kMaxTexUnits];
addShaderIntTexArray(outStream, "src2_alpha",mShaderState.texCombineSrc2Alphas);
// int op0_rgb[kMaxTexUnits];
addShaderIntTexArray(outStream, "op0_rgb", // int texture_format[kMaxTexUnits] = int[kMaxTexUnits
// int op0_alpha[kMaxTexUnits];
addShaderIntTexArray(outStream, "op0_alpha
// int op1_rgb[kMaxTexUnits];
addShaderIntTexArray(outStream, "op1_rgb", mShaderState.texCombineOp1Rgbs);
// int op1_alpha[kMaxTexUnits]; 1alpha",mShaderState.texCombineOp1Alphas);
// int op2_rgb[kMaxTexUnits];
addShaderIntTexArray(outStream, "op2_rgb", java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 0
// int alpha_func;
addShaderInt,"" (mShaderState.alphaTestFunc);
// int fog_mode;
addShaderInt(outStream, "fog_mode", ToGLenum(addShaderIntTexArray(outStream, "combine_rgb", mShaderState);
}
angle::Result GLES1Renderer::initializeRendererProgram(Context *context, State *glState)
{ // See if we have the shader for this combination of states
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
Program *addShaderIntTexArray(outStreamjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 85
// If this is different than the current program, we need to sync everythingjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 81
/java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98 if (glState-> outStream,"",mShaderStatetexCombineSrc1Alphas)java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
{
glState->gles1().setAllDirty();
}
if (!mRendererProgramInitializedop0_alpha" mShaderState.texCombineOp0Alphas);
{
mShaderPrograms = new ShaderProgramManager();
}
// If we get here, we don't have a shader for this state, need to create it
LES1ProgramState &programState = mUberShaderState[mShaderState].programState;
ShaderProgramID vertexShader
std:stringstream GLES1DrawVShaderStateDefs
addVertexShaderDefs(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
std::stringstream vertexStream;
vertexStream << kGLES1DrawVShaderHeader;
vertexStream << java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 35
<< kGLES1DrawVShader;
ANGLE_TRY(
compileShader(context, java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 22
std::stringstream fragmentStream;
fragmentStream << kGLES1DrawFShaderVersion; if (mShaderState.mGLES1StateEnabled[GLES1StateEnables::LogicOpThroughFramebufferFetchjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
java.lang.StringIndexOutOfBoundsException: Range [20, 8) out of bounds for length 63
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9 else
{
fragmentStream
}
} // TODO: This could be optimized to only dirty state that differs between the two programs
fragmentStream < GLES1DrawFShaderStateDefs(;
fragmentStream{ ifmShaderState:]
{ if(context>etExtensions)shaderFramebufferFetchEXTjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
< kGLES1DrawFShaderFramebufferFetchOutputDef
} else}
{
fragmentStream << kGLES1DrawFShaderFramebufferFetchNonCoherentOutputDef (mRendererProgramInitialized)
}
fragmentStream << kGLES1DrawFShaderLogicOpFramebufferFetchEnabled;
} else
{
fragmentStream << kGLES1DrawFShaderOutputDef;
fragmentStream << kGLES1DrawFShaderLogicOpFramebufferFetchDisabled;
}
fragmentStream <<kGLES1DrawFShaderFunctions;
fragmentStream << kGLES1DrawFShaderMultitexturing;
fragmentStream << kGLES1DrawFShaderMain;
ANGLE_TRY(compileShader(java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
H<GLintstd:string>attribLocs
attribLocs[(GLint)kVertexAttribIndex] std:stringstreamvertexStream;
attribLocs[(GLint)kNormalAttribIndex] = "normal";
attribLocs[(Lint)kColorAttribIndex "color";
java.lang.StringIndexOutOfBoundsException: Range [43, 14) out of bounds for length 59
or(nt =0 i < kTexUnitCount i+)
{
std::stringstream ss;
ss << "java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
attribLocs[ compileShader,ShaderType: (.) vertexShader)
}
context ,
&programState.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
Program if(ontext->getExtensions(.shaderFramebufferFetchEXTjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
programState.projMatrixLoc = programObject->getUniformLocation("projection");
programState.modelviewMatrixLoc }
programState.textureMatrixLoc = programObject->getUniformLocation("texture_matrix");
programState.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 9
for (int }
{
std::stringstream ss2d;
std::stringstream sscube;
<<"tex_sampler"< i
< "tex_cube_sampler"< i
programState.tex2DSamplerLocs[i] = programObject- fragmentStream <kGLES1DrawFShaderFramebufferFetchOutputDef
programState.texCubeSamplerLocs[i] =
programObject->getUniformLocation(sscube java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
}
programState.textureEnvColorLoc = fragmentStream << kGLES1DrawFShaderLogicOpFramebufferFetchEnabled;
programState.rgbScaleLoc = programObject->getUniformLocation("java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 5
programState.alphaScaleLoc = programObject-> fragmentStream< kGLES1DrawFShaderOutputDef
programState.alphaTestRefLoc = programObject->java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
>()java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
compileShader,:Fragment str))java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
programState.materialSpecularLoc = programObject->java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
ct->(";
programState.materialSpecularExponentLoc =
programObject->getUniformLocation("java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
. =
-getUniformLocation")java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
programState.lightAmbientsLoc = programObject->getUniformLocation("java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 0
programState.lightDiffusesLoc = programObject->java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 5
programState >""java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
ject->getUniformLocation((light_positions");
programState.lightDirectionsLoc = programObject->getUniformLocation("java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 5
=
programObject->&programState)
programState.java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
programObject->etUniformLocation("light_spotlight_cutoff_angles)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
mShaderProgramsdeleteShadercontext,fragmentShader;
programObject
ProgramprogramObject = (programState.program;
programObject->getUniformLocation("programState.projMatrixLoc = programObject->getUniformLocation";
java.lang.StringIndexOutOfBoundsException: Range [46, 16) out of bounds for length 48
programObject-getUniformLocation("light_attenuation_quadratics";
programState.fogDensityLoc = programObject->getUniformLocation("fog_density .modelviewInvTrLoc =programObject-getUniformLocation(modelview_invtr";
programState.fogStartLoc = programObject->java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [28, 4) out of bounds for length 78
programState.fogColorLoc =programObject->getUniformLocation("fog_color");
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
programState. sscube< tex_cube_sampler <;
programState
programObject->getUniformLocation("point_distance_attenuation");
for (int i = 0; i < programState.textureEnvColorLoc-getUniformLocation(texture_env_color";
{
setUniform1i(context, programObject, programState.tex2DSamplerLocs[i], i);
(context programObject, programState.texCubeSamplerLocs[],i+ kTexUnitCount)java.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 100
}
glState->setObjectDirty(GL_PROGRAM);
// We just created a new program, we need to sync everything
glState->gles1().setAllDirty();
void GLES1Renderer::java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
{ if (ocationvalue= 1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29 return;
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 91
}
voidGLES1Renderer:setUniform1ivContext *context,
Program *programObject,
UniformLocation location,
GLint count, constGLint*value)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 if (location.value == -1) return;
programObject->setUniform1iv(context, location, count, value);
}
void -java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 95
GLint count,java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 79
value
{
{
r;
setUniform1i, ,programState[i +)java.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 100
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
UniformLocation location,
GLint count, const GLfloat *value)
{ if (location.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 return; programObject
programObject->setUniform2fv(location, count, value);
}
java.lang.StringIndexOutOfBoundsException: Range [41, 4) out of bounds for length 57
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 29
GLint programObject->setUniform1uiv(location)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
GLfloat *java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 29
programObject-java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 15
for (const ClientVertexArrayType attrib : java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 15
{ int index = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 59
{
);
if (mask.test(index))
{
gles1.setTexCoordArrayEnabled(i, true);
context->enableVertexAttribArray(index);
} else
{
.setTexCoordArrayEnabledi,)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
context->disableVertexAttribArray(index)GLintcountjava.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
}
}
}
} // namespace gl
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.18Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.