• Home
  • Raw
  • Download

Lines Matching full:context

15 #include "libANGLE/Context.h"
32 class Context; variable
40 context->getMutableErrorSetForValidation()->validationError(entryPoint, errorCode, message)
42 context->getMutableErrorSetForValidation()->validationErrorF(entryPoint, errorCode, __VA_ARGS__)
45 bool ValidTextureTarget(const Context *context, TextureType type);
46 bool ValidTexture2DTarget(const Context *context, TextureType type);
47 bool ValidTexture3DTarget(const Context *context, TextureType target);
48 bool ValidTextureExternalTarget(const Context *context, TextureType target);
49 bool ValidTextureExternalTarget(const Context *context, TextureTarget target);
50 bool ValidTexture2DDestinationTarget(const Context *context, TextureTarget target);
51 bool ValidTexture3DDestinationTarget(const Context *context, TextureTarget target);
52 bool ValidTexLevelDestinationTarget(const Context *context, TextureType type);
53 bool ValidFramebufferTarget(const Context *context, GLenum target);
54 bool ValidMipLevel(const Context *context, TextureType type, GLint level);
55 bool ValidImageSizeParameters(const Context *context,
63 bool ValidCompressedImageSize(const Context *context,
69 bool ValidCompressedSubImageSize(const Context *context,
80 bool ValidImageDataSize(const Context *context,
91 bool ValidQueryType(const Context *context, QueryType queryType);
93 bool ValidateWebGLVertexAttribPointer(const Context *context,
104 Program *GetValidProgram(const Context *context, angle::EntryPoint entryPoint, ShaderProgramID id);
109 Shader *GetValidShader(const Context *context, angle::EntryPoint entryPoint, ShaderProgramID id);
111 bool ValidateAttachmentTarget(const Context *context,
115 bool ValidateBlitFramebufferParameters(const Context *context,
128 bool ValidateBindFramebufferBase(const Context *context,
132 bool ValidateBindRenderbufferBase(const Context *context,
136 bool ValidateFramebufferParameteriBase(const Context *context,
141 bool ValidateFramebufferRenderbufferBase(const Context *context,
147 bool ValidateFramebufferTextureBase(const Context *context,
153 bool ValidateGenerateMipmapBase(const Context *context,
157 bool ValidateRenderbufferStorageParametersBase(const Context *context,
165 bool ValidatePixelPack(const Context *context,
177 bool ValidateReadPixelsBase(const Context *context,
190 bool ValidateReadPixelsRobustANGLE(const Context *context,
203 bool ValidateReadnPixelsEXT(const Context *context,
213 bool ValidateReadnPixelsRobustANGLE(const Context *context,
227 bool ValidateGenQueriesEXT(const Context *context,
231 bool ValidateDeleteQueriesEXT(const Context *context,
235 bool ValidateIsQueryEXT(const Context *context, angle::EntryPoint entryPoint, QueryID id);
236 bool ValidateBeginQueryBase(const Context *context,
240 bool ValidateBeginQueryEXT(const Context *context,
244 bool ValidateEndQueryBase(const Context *context, angle::EntryPoint entryPoint, QueryType target);
245 bool ValidateEndQueryEXT(const Context *context, angle::EntryPoint entryPoint, QueryType target);
246 bool ValidateQueryCounterEXT(const Context *context,
250 bool ValidateGetQueryivBase(const Context *context,
255 bool ValidateGetQueryivEXT(const Context *context,
260 bool ValidateGetQueryivRobustANGLE(const Context *context,
267 bool ValidateGetQueryObjectValueBase(const Context *context,
272 bool ValidateGetQueryObjectivEXT(const Context *context,
277 bool ValidateGetQueryObjectivRobustANGLE(const Context *context,
284 bool ValidateGetQueryObjectuivEXT(const Context *context,
289 bool ValidateGetQueryObjectuivRobustANGLE(const Context *context,
296 bool ValidateGetQueryObjecti64vEXT(const Context *context,
301 bool ValidateGetQueryObjecti64vRobustANGLE(const Context *context,
308 bool ValidateGetQueryObjectui64vEXT(const Context *context,
313 bool ValidateGetQueryObjectui64vRobustANGLE(const Context *context,
321 bool ValidateUniformCommonBase(const Context *context,
327 bool ValidateUniform1ivValue(const Context *context,
333 ANGLE_INLINE bool ValidateUniformValue(const Context *context, in ValidateUniformValue() argument
348 bool ValidateUniformMatrixValue(const Context *context,
352 bool ValidateUniform(const Context *context,
357 bool ValidateUniformMatrix(const Context *context,
363 bool ValidateGetBooleanvRobustANGLE(const Context *context,
369 bool ValidateGetFloatvRobustANGLE(const Context *context,
375 bool ValidateStateQuery(const Context *context,
380 bool ValidateGetIntegervRobustANGLE(const Context *context,
386 bool ValidateGetInteger64vRobustANGLE(const Context *context,
392 bool ValidateRobustStateQuery(const Context *context,
399 bool ValidateCopyImageSubDataBase(const Context *context,
417 bool ValidateCopyTexImageParametersBase(const Context *context,
433 void RecordDrawModeError(const Context *context, angle::EntryPoint entryPoint, PrimitiveMode mode);
434 const char *ValidateDrawElementsStates(const Context *context);
436 ANGLE_INLINE bool ValidateDrawBase(const Context *context, in ValidateDrawBase() argument
440 intptr_t drawStatesError = context->getStateCache().getBasicDrawStatesErrorString( in ValidateDrawBase()
441 context, &context->getPrivateStateCache()); in ValidateDrawBase()
445 GLenum errorCode = context->getStateCache().getBasicDrawElementsErrorCode(); in ValidateDrawBase()
450 if (!context->getStateCache().isValidDrawMode(mode)) in ValidateDrawBase()
452 RecordDrawModeError(context, entryPoint, mode); in ValidateDrawBase()
459 bool ValidateDrawArraysInstancedBase(const Context *context,
465 bool ValidateDrawArraysInstancedANGLE(const Context *context,
471 bool ValidateDrawArraysInstancedEXT(const Context *context,
478 bool ValidateDrawElementsInstancedBase(const Context *context,
485 bool ValidateDrawElementsInstancedANGLE(const Context *context,
492 bool ValidateDrawElementsInstancedEXT(const Context *context,
500 bool ValidateDrawInstancedANGLE(const Context *context, angle::EntryPoint entryPoint);
502 bool ValidateGetUniformBase(const Context *context,
506 bool ValidateSizedGetUniform(const Context *context,
512 bool ValidateGetnUniformfvEXT(const Context *context,
518 bool ValidateGetnUniformfvRobustANGLE(const Context *context,
525 bool ValidateGetnUniformivEXT(const Context *context,
531 bool ValidateGetnUniformivRobustANGLE(const Context *context,
538 bool ValidateGetnUniformuivRobustANGLE(const Context *context,
545 bool ValidateGetUniformfvRobustANGLE(const Context *context,
552 bool ValidateGetUniformivRobustANGLE(const Context *context,
559 bool ValidateGetUniformuivRobustANGLE(const Context *context,
567 bool ValidateDiscardFramebufferBase(const Context *context,
574 bool ValidateInsertEventMarkerEXT(const Context *context,
578 bool ValidatePushGroupMarkerEXT(const Context *context,
582 bool ValidateEGLImageObject(const Context *context,
586 bool ValidateEGLImageTargetTexture2DOES(const Context *context,
590 bool ValidateEGLImageTargetRenderbufferStorageOES(const Context *context,
595 bool ValidateProgramBinaryBase(const Context *context,
601 bool ValidateGetProgramBinaryBase(const Context *context,
609 bool ValidateDrawBuffersBase(const Context *context,
614 bool ValidateGetBufferPointervBase(const Context *context,
620 bool ValidateUnmapBufferBase(const Context *context,
623 bool ValidateMapBufferRangeBase(const Context *context,
629 bool ValidateFlushMappedBufferRangeBase(const Context *context,
635 bool ValidateGenOrDelete(const Context *context, angle::EntryPoint entryPoint, GLint n);
637 bool ValidateRobustEntryPoint(const Context *context,
640 bool ValidateRobustBufferSize(const Context *context,
645 bool ValidateGetFramebufferAttachmentParameterivBase(const Context *context,
652 bool ValidateGetFramebufferParameterivBase(const Context *context,
658 bool ValidateGetBufferParameterBase(const Context *context,
665 bool ValidateGetProgramivBase(const Context *context,
671 bool ValidateGetRenderbufferParameterivBase(const Context *context,
677 bool ValidateGetShaderivBase(const Context *context,
683 bool ValidateGetTexParameterBase(const Context *context,
690 bool ValidateTexParameterBase(const Context *context,
698 bool ValidateGetVertexAttribBase(const Context *context,
706 ANGLE_INLINE bool ValidateVertexFormat(const Context *context, in ValidateVertexFormat() argument
712 const Caps &caps = context->getCaps(); in ValidateVertexFormat()
751 ANGLE_INLINE bool ValidateFloatVertexFormat(const Context *context, in ValidateFloatVertexFormat() argument
757 return ValidateVertexFormat(context, entryPoint, index, size, in ValidateFloatVertexFormat()
758 context->getStateCache().getVertexAttribTypeValidation(type)); in ValidateFloatVertexFormat()
761 ANGLE_INLINE bool ValidateIntegerVertexFormat(const Context *context, in ValidateIntegerVertexFormat() argument
768 context, entryPoint, index, size, in ValidateIntegerVertexFormat()
769 context->getStateCache().getIntegerVertexAttribTypeValidation(type)); in ValidateIntegerVertexFormat()
772 bool ValidateWebGLFramebufferAttachmentClearType(const Context *context,
797 bool ValidateRobustCompressedTexImageBase(const Context *context,
807 bool ValidateGetActiveUniformBlockivBase(const Context *context,
814 bool ValidateGetSamplerParameterBase(const Context *context,
821 bool ValidateSamplerParameterBase(const Context *context,
829 bool ValidateGetInternalFormativBase(const Context *context,
837 bool ValidateFramebufferNotMultisampled(const Context *context,
847 bool ValidateTransformFeedbackPrimitiveMode(const Context *context,
853 bool ValidateTexStorageMultisample(const Context *context,
861 bool ValidateTexStorage2DMultisampleBase(const Context *context,
869 bool ValidateGetTexLevelParameterBase(const Context *context,
876 bool ValidateMapBufferBase(const Context *context,
879 bool ValidateIndexedStateQuery(const Context *context,
884 bool ValidateES3TexImage2DParameters(const Context *context,
902 bool ValidateES3CopyTexImage2DParameters(const Context *context,
916 bool ValidateES3TexStorageParametersBase(const Context *context,
924 bool ValidateES3TexStorage2DParameters(const Context *context,
932 bool ValidateES3TexStorage3DParameters(const Context *context,
941 bool ValidateGetMultisamplefvBase(const Context *context,
952 bool ValidateProgramExecutableXFBBuffersPresent(const Context *context,
960 ANGLE_INLINE bool ValidateFramebufferComplete(const Context *context, in ValidateFramebufferComplete() argument
964 const FramebufferStatus &framebufferStatus = framebuffer->checkStatus(context); in ValidateFramebufferComplete()
979 const char *ValidateDrawStates(const Context *context, GLenum *outErrorCode);
980 const char *ValidateProgramPipeline(const Context *context);
982 void RecordDrawAttribsError(const Context *context, angle::EntryPoint entryPoint);
984 ANGLE_INLINE bool ValidateDrawAttribs(const Context *context, in ValidateDrawAttribs() argument
988 if (maxVertex > context->getStateCache().getNonInstancedVertexElementLimit()) in ValidateDrawAttribs()
990 RecordDrawAttribsError(context, entryPoint); in ValidateDrawAttribs()
997 ANGLE_INLINE bool ValidateDrawArraysAttribs(const Context *context, in ValidateDrawArraysAttribs() argument
1002 if (!context->isBufferAccessValidationEnabled()) in ValidateDrawArraysAttribs()
1020 return ValidateDrawAttribs(context, entryPoint, maxVertex); in ValidateDrawArraysAttribs()
1023 ANGLE_INLINE bool ValidateDrawInstancedAttribs(const Context *context, in ValidateDrawInstancedAttribs() argument
1027 if (!context->isBufferAccessValidationEnabled()) in ValidateDrawInstancedAttribs()
1032 if ((primcount - 1) > context->getStateCache().getInstancedVertexElementLimit()) in ValidateDrawInstancedAttribs()
1034 RecordDrawAttribsError(context, entryPoint); in ValidateDrawInstancedAttribs()
1041 ANGLE_INLINE bool ValidateDrawArraysCommon(const Context *context, in ValidateDrawArraysCommon() argument
1063 return ValidateDrawBase(context, entryPoint, mode); in ValidateDrawArraysCommon()
1074 return ValidateDrawBase(context, entryPoint, mode); in ValidateDrawArraysCommon()
1077 if (!ValidateDrawBase(context, entryPoint, mode)) in ValidateDrawArraysCommon()
1082 if (context->getStateCache().isTransformFeedbackActiveUnpaused() && in ValidateDrawArraysCommon()
1083 !context->supportsGeometryOrTesselation()) in ValidateDrawArraysCommon()
1085 const State &state = context->getState(); in ValidateDrawArraysCommon()
1094 return ValidateDrawArraysAttribs(context, entryPoint, first, count); in ValidateDrawArraysCommon()
1097 ANGLE_INLINE bool ValidateDrawElementsBase(const Context *context, in ValidateDrawElementsBase() argument
1102 if (!context->getStateCache().isValidDrawElementsType(type)) in ValidateDrawElementsBase()
1115 intptr_t drawElementsError = context->getStateCache().getBasicDrawElementsError(context); in ValidateDrawElementsBase()
1128 ANGLE_INLINE bool ValidateDrawElementsCommon(const Context *context, in ValidateDrawElementsCommon() argument
1136 if (!ValidateDrawElementsBase(context, entryPoint, mode, type)) in ValidateDrawElementsCommon()
1143 if (context->isWebGL()) in ValidateDrawElementsCommon()
1175 return ValidateDrawBase(context, entryPoint, mode); in ValidateDrawElementsCommon()
1178 if (!ValidateDrawBase(context, entryPoint, mode)) in ValidateDrawElementsCommon()
1183 const State &state = context->getState(); in ValidateDrawElementsCommon()
1231 if (context->isBufferAccessValidationEnabled() && primcount > 0) in ValidateDrawElementsCommon()
1235 ANGLE_VALIDATION_TRY(vao->getIndexRange(context, type, count, indices, &indexRange)); in ValidateDrawElementsCommon()
1240 if (static_cast<GLint64>(indexRange.end) >= context->getCaps().maxElementIndex) in ValidateDrawElementsCommon()
1246 if (!ValidateDrawAttribs(context, entryPoint, static_cast<GLint>(indexRange.end))) in ValidateDrawElementsCommon()
1258 ANGLE_INLINE bool ValidateBindVertexArrayBase(const Context *context, in ValidateBindVertexArrayBase() argument
1262 if (!context->isVertexArrayGenerated(array)) in ValidateBindVertexArrayBase()