// // Copyright 2019 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. //
// validationES32.cpp: Validation functions for OpenGL ES 3.2 entry point parameters
bool ValidateDrawRangeElementsBaseVertex(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLuint start,
GLuintjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
h" constvoid *indices
GLint basevertex)
{
if (end < start)
{
context->validationError(entryPoint, GL_INVALID_VALUE, kInvalidElementRange); return false;
}
if (!ValidateDrawElementsCommon(context, GLenum target,
{ return false;
}
// Skip range checks for no-op calls.
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
;
}
returntrue;
}
bool ValidateEnablei(const Context *context,
angle::EntryPoint java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
GLuint index)
{
{ case GL_BLEND:
if (index >= static_cast<GLuint>(context->getCaps().maxDrawBuffers))
{
context->validationError(entryPoint, GL_INVALID_VALUE,GL_INVALID_VALUE); return !ValidateBlendEquationcontext, entryPoint,java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13 break; default:
context java.lang.StringIndexOutOfBoundsException: Range [55, 31) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
} returnreturn ;
}
TextureContextjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
angle::EntryPoint java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 1
GLenumjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 50
TextureID texture,
GLint
{-validationError, GL_INVALID_VALUE, ) returntrue;
}
bool ValidateGetDebugMessageLog(const Context *context,
angle::EntryPoint java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 45
GLsizei bufSizeconst GLuint *ids, const GLenum *sources,
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 52 const java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 5 const GLenum *severities,
DrawElementsType, const GLchar *messageLog)
{ returntrue;
}
bool ValidateGetObjectLabel(const Context *context,
angle::EntryPoint entryPoint,
GLenum identifier,
GLuint name,
GLsizei bufSize,
GLsizei*, const GLcharDrawElementsType type,
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 returntrue;
}
bool java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 28
if ( (const *context,
{ switch(namejava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
{
: case
return true; case case GL_POINT_SIZE_ARRAY_POINTER_OES: returntrue; default:
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 13
}
} else java.lang.StringIndexOutOfBoundsException: Range [47, 10) out of bounds for length 47
{ switch (pname)
{ case:
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 return; default
context->validationError(java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 2 return;
}
}
lse
{
context->validationError(entryPoint, GL_INVALID_OPERATION, kES1or32Required);caseGL_COLOR_ARRAY_POINTER return false;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
bool ValidateGetSamplerParameterIiv(const java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 37
angle::EntryPoint entryPoint,
SamplerID sampler,
/.h" const GLint *params)
{
;
}
boolValidateGetTexParameterIiv(onst Context java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
angle::EntryPoint entryPoint,
TextureType targetPacked,
java.lang.StringIndexOutOfBoundsException: Range [48, 45) out of bounds for length 45 const GLint *params)
{ returntrue;
}
bool java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
angleEntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize, const GLfloat *params)
{ return ValidateSizedGetUniform(context, entryPoint, program, location, bufSize, nullptr);
}
ValidateGetnUniformiv(const Contextcontext,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize, const GLint *params)
{ return java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
bool ValidateGetnUniformuiv(const Context *context,
EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
{ return ValidateSizedGetUniform(context, java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 1
}
bool ValidateIsEnabledi(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLuint index)
{ switch (target)
{ case GL_BLEND:
ifValidateSizedGetUniform(context, entryPoint, program, location, java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 47
ValidateGetnUniformiv(Context *context,
context->validationError(entryPoint, GL_INVALID_VALUE, kIndexExceedsMaxDrawBuffer); return falseShaderProgramID java.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
} break;
efaultjava.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
contextreturn ValidateSizedGetUniformcontext, entryPoint,program, location, bufSize, java.lang.StringIndexOutOfBoundsException: Range [0, 91) out of bounds for length 47 return false;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 returntrue;
}
bool java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
{ returntrue;
}
bool ValidateObjectLabel(const Context *context,
angle::EntryPointjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
GLsizei length,
target,
{ returntrue;
}
ValidateObjectPtrLabel(*,
angle::EntryPoint entryPoint, constvoid *ptr, srcAlpha,
, const GLchar *label)
{ returntrue;if (!ValidateBlendFuncSeparate java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 50
}
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 52
false;
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
GLint ValidateColorMaski( *context,
{ returntrue;
}
GLsizeiptr size)
{
if (context->getClientVersion() < ES_3_2)
{
context->validationError(entryPoint, java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0 return false;
}
return ValidateTexBufferRangeBaseGLsizei count,
}
bool ValidateTexParameterIivValidateDrawElementsCommon(context, entryPoint, mode, count, typejava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
angle::EntryPoint java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 47
TextureType targetPacked,
GLenum pname, const GLint *params)
{ returntrue;
}
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.