1 // 2 // Copyright 2017 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // ErrorStrings.h: Contains mapping of commonly used error messages 8 9 #ifndef LIBANGLE_ERRORSTRINGS_H_ 10 #define LIBANGLE_ERRORSTRINGS_H_ 11 12 namespace gl 13 { 14 namespace err 15 { 16 #define MSG constexpr const char * 17 18 // clang-format off 19 MSG k3DDepthStencil = "Format cannot be GL_DEPTH_COMPONENT or GL_DEPTH_STENCIL if target is GL_TEXTURE_3D"; 20 MSG kANGLECopyTexture3DUnavailable = "GL_ANGLE_copy_texture_3d extension not available."; 21 MSG kANGLECopyTextureMissingRequiredExtension = "Copy*TextureCHROMIUM from EXTERNAL_OES to integer format requires OES_EGL_image_external_essl3"; 22 MSG kAdvancedBlendEquationWithMRT = "Advanced blend equation can only be used when only one draw buffer is not NONE"; 23 MSG kAdvancedBlendExtensionNotEnabled = "GL_KHR_blend_equation_advanced extension not enabled."; 24 MSG kAtomicCounterResourceName = "Active atomic counter resources are not assigned name strings."; 25 MSG kAttributeListNotNull = "Attribute list must be NULL or GL_NONE"; 26 MSG kAttributeZeroRequiresDivisorLimitation = "The current context doesn't support setting a non-zero divisor on the attribute with index zero. Please reorder the attributes in your vertex shader so that attribute zero can have a zero divisor."; 27 MSG kBaseLevelNegative = "Base level must be at least 0."; 28 MSG kBaseLevelNonZero = "Base level must be 0."; 29 MSG kBaseLevelOutOfRange = "Texture base level out of range"; 30 MSG kBlendEquationNotEnabled = "Active fragment shader does not include the layout qualifier matching the blend equation"; 31 MSG kBlitDepthOrStencilFormatMismatch = "Depth/stencil buffer format combination not allowed for blit."; 32 MSG kBlitDimensionsOutOfRange = "BlitFramebuffer dimensions out of 32-bit integer range."; 33 MSG kBlitExtensionDepthStencilWholeBufferBlit = "Only whole-buffer depth and stencil blits are supported by this extension."; 34 MSG kBlitExtensionFormatMismatch = "Attempting to blit and the read and draw buffer formats don't match. read: 0x%04X draw: 0x%04X"; 35 MSG kBlitExtensionFromInvalidAttachmentType = "Blits are only supported from 2D texture, renderbuffer or default framebuffer attachments in this extension."; 36 MSG kBlitExtensionLinear = "Linear blit not supported in this extension."; 37 MSG kBlitExtensionMultisampledDepthOrStencil = "Multisampled depth/stencil blit is not supported by this extension."; 38 MSG kBlitExtensionMultisampledWholeBufferBlit = "Only whole-buffer blit is supported from a multisampled read buffer in this extension."; 39 MSG kBlitExtensionNotAvailable = "Blit extension not available."; 40 MSG kBlitExtensionScaleOrFlip = "Scaling and flipping in BlitFramebufferANGLE not supported by this implementation."; 41 MSG kBlitExtensionToInvalidAttachmentType = "Blits are only supported to 2D texture, renderbuffer or default framebuffer attachments in this extension."; 42 MSG kBlitFeedbackLoop = "Blit feedback loop: the read and draw framebuffers are the same."; 43 MSG kBlitFramebufferMissing = "Read and draw framebuffers must both exist for a blit to succeed."; 44 MSG kBlitFromMultiview = "Attempt to read from a multi-view framebuffer."; 45 MSG kBlitIntegerWithLinearFilter = "Cannot use GL_LINEAR filter when blitting a integer framebuffer."; 46 MSG kBlitInvalidFilter = "Invalid blit filter."; 47 MSG kBlitInvalidMask = "Invalid blit mask."; 48 MSG kBlitMissingColor = "Attempt to read from a missing color attachment of a complete framebuffer."; 49 MSG kBlitMissingDepthOrStencil = "Attempt to read from a missing depth/stencil attachment of a complete framebuffer."; 50 MSG kBlitMultisampledBoundsMismatch = "Attempt to blit from a multisampled framebuffer and the bounds don't match with the draw framebuffer."; 51 MSG kBlitMultisampledFormatOrBoundsMismatch = "Attempt to blit from a multisampled framebuffer and the bounds or format of the color buffer don't match with the draw framebuffer."; 52 MSG kBlitOnlyNearestForNonColor = "Only nearest filtering can be used when blitting buffers other than the color buffer."; 53 MSG kBlitSameImageColor = "Read and write color attachments cannot be the same image."; 54 MSG kBlitSameImageDepthOrStencil = "Read and write depth stencil attachments cannot be the same image."; 55 MSG kBlitToMultiview = "Attempt to write to a multi-view framebuffer."; 56 MSG kBlitTypeMismatchFixedOrFloat = "If the read buffer contains fixed-point or floating-point values, the draw buffer must as well."; 57 MSG kBlitTypeMismatchFixedPoint = "If the read buffer contains fixed-point values, the draw buffer must as well."; 58 MSG kBlitTypeMismatchSignedInteger = "If the read buffer contains signed integer values the draw buffer must as well."; 59 MSG kBlitTypeMismatchUnsignedInteger = "If the read buffer contains unsigned integer values the draw buffer must as well."; 60 MSG kBlitYUVFramebuffer = "Blitting to or from a YUV framebuffer is disallowed."; 61 MSG kBufferAlreadyMapped = "Buffer is already mapped."; 62 MSG kBufferBoundForTransformFeedback = "Buffer is bound for transform feedback."; 63 MSG kBufferImmutable = "Buffer is immutable."; 64 MSG kBufferMapped = "An active buffer is mapped"; 65 MSG kBufferNotBound = "A buffer must be bound."; 66 MSG kBufferNotMappable = "Attempted to map buffer object zero."; 67 MSG kBufferNotMapped = "Buffer is not mapped."; 68 MSG kBufferNotUpdatable = "Buffer is not updatable."; 69 MSG kBufferOffsetOverflow = "Buffer offset overflow."; 70 MSG kBufferPointerNotAvailable = "Can not get pointer for reserved buffer name zero."; 71 MSG kCannotPopDefaultDebugGroup = "Cannot pop the default debug group."; 72 MSG kClientBufferInvalid = "Size must not exceed the size of clientbuffer"; 73 MSG kClientDataInVertexArray = "Client data cannot be used with a non-default vertex array object."; 74 MSG kColorNumberGreaterThanMaxDrawBuffers = "Color number for primary color greater than or equal to MAX_DRAW_BUFFERS"; 75 MSG kColorNumberGreaterThanMaxDualSourceDrawBuffers = "Color number for secondary color greater than or equal to MAX_DUAL_SOURCE_DRAW_BUFFERS"; 76 MSG kCompressedDataSizeTooSmall = "dataSize is too small"; 77 MSG kCompressedMismatch = "Compressed data is valid if-and-only-if the texture is compressed."; 78 MSG kCompressedTextureDimensionsMustMatchData = "Compressed texture dimensions must exactly match the dimensions of the data passed in."; 79 MSG kCompressedTexturesNotAttachable = "Compressed textures cannot be attached to a framebuffer."; 80 MSG kConstantColorAlphaLimitation = "Simultaneous use of GL_CONSTANT_ALPHA/GL_ONE_MINUS_CONSTANT_ALPHA and GL_CONSTANT_COLOR/GL_ONE_MINUS_CONSTANT_COLOR as color factors is not supported by this implementation."; 81 MSG kContextLost = "Context has been lost."; 82 MSG kCopyAlias = "The read and write copy regions alias memory."; 83 MSG kCopyFromYUVFramebuffer = "Copying from a YUV framebuffer is disallowed."; 84 MSG kCubemapFacesEqualDimensions = "Each cubemap face must have equal width and height."; 85 MSG kCubemapIncomplete = "Texture is not cubemap complete. All cubemaps faces must be defined and be the same size."; 86 MSG kCubemapInvalidDepth = "The cubemap depth must be a multiple of 6."; 87 MSG kDataTypeNotAligned = "Data is not evenly divisible into the number of bytes needed to store in memory a datum indicated by type."; 88 MSG kDefaultFramebuffer = "Default framebuffer is bound."; 89 MSG kDefaultFramebufferAttachmentOnUserFBO = "Invalid attachment when a user framebuffer is bound."; 90 MSG kDefaultFramebufferInvalidAttachment = "Invalid attachment when the default framebuffer is bound."; 91 MSG kDefaultFramebufferInvalidDrawBuffer = "Only NONE or BACK are valid draw buffers for the default framebuffer"; 92 MSG kDefaultFramebufferTarget = "It is invalid to change default FBO's attachments"; 93 MSG kDefaultVertexArray = "Default vertex array object is bound."; 94 MSG kDestinationImmutable = "Destination texture cannot be immutable."; 95 MSG kDestinationLevelNotDefined = "The destination level of the destination texture must be defined."; 96 MSG kDestinationTextureTooSmall = "Destination texture too small."; 97 MSG kDimensionsMustBePow2 = "Texture dimensions must be power-of-two."; 98 MSG kDispatchIndirectBufferNotBound = "Dispatch indirect buffer must be bound."; 99 MSG kDrawBufferMaskMismatch = "Active draw buffers with missing fragment shader outputs."; 100 MSG kDrawBuffersIndexedExtensionNotAvailable = "EXT/OES_draw_buffers_indexed is not available."; 101 MSG kES31OrDrawBuffersIndexedExtensionNotAvailable = "EXT/OES_draw_buffers_indexed or ES 3.1 are required but not available."; 102 MSG kDrawBufferTypeMismatch = "Fragment shader output type does not match the bound framebuffer attachment type."; 103 MSG kDrawFramebufferIncomplete = "Draw framebuffer is incomplete"; 104 MSG kDrawIndirectBufferNotBound = "Draw indirect buffer must be bound."; 105 MSG kDualSourceBlendingDrawBuffersLimit = "Dual-source blending functions limit the number of supported draw buffers."; 106 MSG kEGLImageCannotCreate2DMultisampled = "Cannot create a 2D texture from a multisampled EGL image."; 107 MSG kEGLImageRenderbufferFormatNotSupported = "EGL image internal format is not supported as a renderbuffer."; 108 MSG kEGLImageTextureFormatNotSupported = "EGL image internal format is not supported as a texture."; 109 MSG kEGLImageTextureTargetMismatch = "The source EGL image is incompatible with the target texture type."; 110 MSG kElementArrayBufferBoundForTransformFeedback = "It is undefined behavior to use an element array buffer that is bound for transform feedback."; 111 MSG kElementArrayNoBufferOrPointer = "No element array buffer and no pointer."; 112 MSG kEnumInvalid = "Invalid enum provided."; 113 MSG kEnumNotSupported = "Enum 0x%04X is currently not supported."; 114 MSG kEnumRequiresGLES30 = "Enum requires GLES 3.0"; 115 MSG kEnumRequiresGLES31 = "Enum requires GLES 3.1"; 116 MSG kES1or32Required = "OpenGL ES 1.x or 3.2 Required"; 117 MSG kES2Required = "OpenGL ES 2.0 Required."; 118 MSG kES31Required = "OpenGL ES 3.1 Required"; 119 MSG kES32Required = "OpenGL ES 3.2 Required"; 120 MSG kES3Required = "OpenGL ES 3.0 Required."; 121 MSG kExceedsComputeWorkGroupCountX = "num_groups_x cannot be greater than MAX_COMPUTE_WORK_GROUP_COUNT[0]"; 122 MSG kExceedsComputeWorkGroupCountY = "num_groups_y cannot be greater than MAX_COMPUTE_WORK_GROUP_COUNT[1]"; 123 MSG kExceedsComputeWorkGroupCountZ = "num_groups_z cannot be greater than MAX_COMPUTE_WORK_GROUP_COUNT[2]"; 124 MSG kExceedsElementRange = "Element value exceeds element range."; 125 MSG kExceedsFramebufferHeight = "Params less than 0 or greater than GL_MAX_FRAMEBUFFER_HEIGHT."; 126 MSG kExceedsFramebufferSamples = "Params less than 0 or greater than GL_MAX_FRAMEBUFFER_SAMPLES."; 127 MSG kExceedsFramebufferWidth = "Params less than 0 or greater than GL_MAX_FRAMEBUFFER_WIDTH."; 128 MSG kExceedsMaxColorAttachments = "Index is greater than the maximum supported color attachments"; 129 MSG kExceedsMaxDebugGroupStackDepth = "Cannot push more than GL_MAX_DEBUG_GROUP_STACK_DEPTH debug groups."; 130 MSG kExceedsMaxDebugMessageLength = "Message length is larger than GL_MAX_DEBUG_MESSAGE_LENGTH."; 131 MSG kExceedsMaxDrawBuffers = "Draw buffer greater than MAX_DRAW_BUFFERS."; 132 MSG kExceedsMaxElement = "Element value exceeds maximum element index."; 133 MSG kExceedsMaxImageUnits = "Index must be within [0, MAX_IMAGE_UNITS)."; 134 MSG kExceedsMaxLabelLength = "Label length is larger than GL_MAX_LABEL_LENGTH."; 135 MSG kExceedsMaxShaderStorageBufferBindings = "Index must be within [0, MAX_SHADER_STORAGE_BUFFER_BINDINGS)."; 136 MSG kExceedsMaxVertexAttribBindings = "Index must be within [0, MAX_VERTEX_ATTRIB_BINDINGS)."; 137 MSG kExceedsMaxVertexAttribStride = "Stride must be within [0, MAX_VERTEX_ATTRIB_STRIDE)."; 138 MSG kExceedsNumExtensions = "Index must be within [0, NUM_EXTENSIONS)."; 139 MSG kExceedsNumRequestableExtensions = "Index must be within [0, NUM_REQUESTABLE_EXTENSIONS_ANGLE)."; 140 MSG kExpectedProgramName = "Expected a program name, but found a shader name."; 141 MSG kExpectedShaderName = "Expected a shader name, but found a program name."; 142 MSG kExtensionNotEnabled = "Extension is not enabled."; 143 MSG kExtensionNotDisablable = "Extension is not disablable."; 144 MSG kExtensionNotRequestable = "Extension is not requestable."; 145 MSG kExternalBufferInvalidOffset = "Offset must be zero for external buffers"; 146 MSG kExternalTextureAttachmentNotYUV = "External texture attached to framebuffer is not YUV."; 147 MSG kExternalTextureNotSupported = "External texture extension not enabled"; 148 MSG kFeedbackLoop = "Feedback loop formed between Framebuffer and active Texture."; 149 MSG kFixedNotInWebGL = "GL_FIXED is not supported in WebGL."; 150 MSG kFocalPointsExceedMaxFocalPoints = "Requested focal point exceeds the supported maximum"; 151 MSG kFormatNotRenderable = "Internal format is not renderable."; 152 MSG kFoveatedTextureCannotDisable = "Cannot disable foveation on a foveated texture"; 153 MSG kFoveatedTextureInvalidParameters = "Invalid parameters given for GL_TEXTURE_FOVEATED_FEATURE_BITS_QCOM"; 154 MSG kFoveatedTextureInvalidPixelDensity = "Pixel density must be between 0.0 and 1.0"; 155 MSG kFoveatedTextureQcomExtensionRequired = "GL_QCOM_texture_foveated not enabled"; 156 MSG kFragDataBindingIndexOutOfRange = "Fragment output color index must be zero or one."; 157 MSG kFragmentInputTypeNotFloatingPoint = "Fragment input type is not a floating point scalar or vector."; 158 MSG kFramebufferFetchNonCoherentExtensionNotEnabled = "GL_EXT_shader_framebuffer_fetch_non_coherent not enabled."; 159 MSG kFramebufferFoveationAlreadyConfigured = "glFramebufferFoveationConfigQCOM called on a framebuffer that has already been configured for foveated rendering"; 160 MSG kFramebufferFoveationAttachmentChanged = "Attachments have been changed on a framebuffer configured for foveated rendering"; 161 MSG kFramebufferFoveationLayersExceedMaxArrayLayers = "Requested layer exceeds the supported maximum"; 162 MSG kFramebufferFoveationNotConfigured = "glFramebufferFoveationParametersQCOM called on a framebuffer that has not been configured for foveated rendering"; 163 MSG kFramebufferIncomplete = "Framebuffer is incomplete."; 164 MSG kFramebufferIncompleteAttachment = "Attachment type must be compatible with attachment object."; 165 MSG kFramebufferIncompleteAttachmentDepthGreaterThanMaxLayers = "Framebuffer is incomplete: Attachment depth is greater than MAX_FRAMEBUFFER_LAYERS."; 166 MSG kFramebufferIncompleteAttachmentInconsistantBitPlanes = "Framebuffer is incomplete: Attachments have inconsistent bit plane counts."; 167 MSG kFramebufferIncompleteAttachmentLayerGreaterThanDepth = "Framebuffer is incomplete: Attachment layer is greater than texture layer count."; 168 MSG kFramebufferIncompleteAttachmentLevelNotBaseLevelForIncompleteMipTexture = "Framebuffer is incomplete: Attachment level not equal to the base level and the texture is not mipmap complete."; 169 MSG kFramebufferIncompleteAttachmentLevelOutOfBaseMaxLevelRange = "Framebuffer is incomplete: Attachment level is not in the [base level, max level] range."; 170 MSG kFramebufferIncompleteAttachmentNoDepthBitsInDepthBuffer = "Framebuffer is incomplete: Depth attachment has no depth bits."; 171 MSG kFramebufferIncompleteAttachmentNoStencilBitsInStencilBuffer = "Framebuffer is incomplete: Stencil attachment has no stencil bits."; 172 MSG kFramebufferIncompleteAttachmentNotCubeComplete = "Framebuffer is incomplete: Attachment is an incomplete cube map."; 173 MSG kFramebufferIncompleteAttachmentNotRenderable = "Framebuffer is incomplete: Attachment is not renderable."; 174 MSG kFramebufferIncompleteAttachmentSamplesGreaterThanMaxSupportedSamples = "Framebuffer is incomplete: Attachment samples are greater than the maximum supported samples for this format."; 175 MSG kFramebufferIncompleteAttachmentsNotUnique = "Framebuffer is incomplete: All attachments must be unique."; 176 MSG kFramebufferIncompleteAttachmentWebGLDepthBufferHasStencilBits = "Framebuffer is incomplete: Stencil attachment has depth bits."; 177 MSG kFramebufferIncompleteAttachmentWebGLDepthStencilNoDepthOrStencilBits = "Framebuffer is incomplete: Depth stencil attachment has no depth bits or no stencil bits."; 178 MSG kFramebufferIncompleteAttachmentWebGLStencilBufferHasDepthBits = "Framebuffer is incomplete: Stencil attachment has depth bits."; 179 MSG kFramebufferIncompleteAttachmentZeroSize = "Framebuffer is incomplete: Attachment has zero size."; 180 MSG kFramebufferIncompleteColorBitsUsedExceedsMaxColorBitsSupported = "Framebuffer is incomplete: The total number of color bits exceeds the number of output bits supported."; 181 MSG kFramebufferIncompleteDefaultZeroSize = "Framebuffer is incomplete: No attachments and default size is zero."; 182 MSG kFramebufferIncompleteDepthAndStencilBuffersNotTheSame = "Framebuffer is incomplete: Depth and stencil attachments are not the same."; 183 MSG kFramebufferIncompleteDepthStencilInColorBuffer = "Framebuffer is incomplete: Depth stencil texture in color attachment."; 184 MSG kFramebufferIncompleteDriverUnsupported = "Framebuffer is incomplete: Driver does not support this framebuffer configuration."; 185 MSG kFramebufferIncompleteFoveatedRendering = "Framebuffer is incomplete: Invalid framebuffer configuration for foveated rendering."; 186 MSG kFramebufferIncompleteInconsistantAttachmentSizes = "Framebuffer is incomplete: Attachments are not all the same size."; 187 MSG kFramebufferIncompleteInternalError = "Framebuffer is incomplete: Internal error."; 188 MSG kFramebufferIncompleteMismatchedLayeredAttachments = "Framebuffer is incomplete: If one attachment is layered, all must be layered."; 189 MSG kFramebufferIncompleteMismatchedLayeredTexturetypes = "Framebuffer is incomplete: If an attachments are layered, they must all be the same texture type."; 190 MSG kFramebufferIncompleteMultisampleDepthStencilSampleCountDivisibleByColorSampleCount = "Framebuffer is incomplete: Depth stencil sample count must be divisible by the color sample count."; 191 MSG kFramebufferIncompleteMultisampleInconsistentFixedSampleLocations = "Framebuffer is incomplete: Attachments have inconsistent fixed sample locations."; 192 MSG kFramebufferIncompleteMultisampleInconsistentSampleCounts = "Framebuffer is incomplete: Attachments have different sample counts."; 193 MSG kFramebufferIncompleteMultisampleNonFixedSamplesWithRenderbuffers = "Framebuffer is incomplete: All textures must have fixed samples if paired with multisample renderbuffers."; 194 MSG kFramebufferIncompleteMultiviewBaseViewMismatch = "Framebuffer is incomplete: Attachments have inconsistent multiview base view."; 195 MSG kFramebufferIncompleteMultiviewMismatch = "Framebuffer is incomplete: Attachments have inconsistent multiview enabled state."; 196 MSG kFramebufferIncompleteMultiviewViewsMismatch = "Framebuffer is incomplete: Attachments have inconsistent multiview view counts."; 197 MSG kFramebufferIncompleteSurfaceless = "Framebuffer is incomplete: Framebuffer is surfaceless."; 198 MSG kFramebufferIncompleteUnsupportedMissmatchedDimensions = "Framebuffer is incomplete: Mismatched attachment sizes are unsupported."; 199 MSG kFramebufferIncompleteUnsupportedNonUniqueAttachments = "Framebuffer is incomplete: Non-unique attachments are unsupported."; 200 MSG kFramebufferIncompleteUnsupportedSeparateDepthStencilBuffers = "Framebuffer is incomplete: Separate depth and stencil buffers are unsupported."; 201 MSG kFramebufferIncompleteWebGLDepthStencilInconsistant = "Framebuffer is incomplete: WebGL depth stencil state is inconsistent."; 202 MSG kFramebufferTextureInvalidLayer = "Layer invalid for framebuffer texture attachment."; 203 MSG kFramebufferTextureInvalidMipLevel = "Mip level invalid for framebuffer texture attachment."; 204 MSG kFramebufferTextureLayerIncorrectTextureType = "Texture is not a three-dimensional, two-dimensional array, two-dimensional multisample array, cube map, or cube map array texture."; 205 MSG kGenerateMipmapNotAllowed = "Texture format does not support mipmap generation."; 206 MSG kGenerateMipmapZeroSize = "Cannot generate mipmaps for a zero-size texture in a WebGL context."; 207 MSG kGeometryOrTessellationShaderBoundForFoveatedDraw = "Invalid to draw with foveation while current bound program uses tessellation or geometry shaders"; 208 MSG kGeometryShaderExtensionNotEnabled = "GL_EXT_geometry_shader or GL_OES_geometry_shader extension not enabled."; 209 MSG kGetImageExtensionNotEnabled = "GL_ANGLE_get_image extension not enabled."; 210 MSG kGetImageCompressed = "Texture is compressed, call GetCompressedTexImage instead."; 211 MSG kGetImageNotCompressed = "Texture is not compressed, call GetTexImage instead."; 212 MSG kGLES1Only = "GLES1-only function."; 213 MSG kImageSizeMustBeZero = "imageSize must be 0 if no texture data is provided."; 214 MSG kImageSizeTooSmall = "imageSize is too small."; 215 MSG kImmutableMemoryObject = "The memory object is immutable."; 216 MSG kImmutableTextureBound = "The value of TEXTURE_IMMUTABLE_FORMAT for the texture currently bound to target on the active texture unit is true."; 217 MSG kIncompatibleDrawModeAgainstGeometryShader = "Primitive mode is incompatible with the input primitive type of the geometry shader."; 218 MSG kIncompatibleDrawModeWithTessellationShader = "When tessellation is active the primitive mode must be GL_PATCHES."; 219 MSG kIncompatibleDrawModeWithoutTessellationShader = "When tessellation is not active the primitive mode must not be GL_PATCHES."; 220 MSG kIncompatibleTextures = "Texture formats are not compatible"; 221 MSG kIndexExceedsActiveUniformBlockCount = "Index exceeds active uniform block count."; 222 MSG kIndexExceedsMaxActiveUniform = "Index must be less than program active uniform count."; 223 MSG kIndexExceedsMaxActiveUniformBlock = "Index must be less than program active uniform block count."; 224 MSG kIndexExceedsMaxAtomicCounterBufferBindings = "Index must be less than MAX_ATOMIC_COUNTER_BUFFER_BINDINGS."; 225 MSG kIndexExceedsMaxDrawBuffer = "Index must be less than MAX_DRAW_BUFFERS."; 226 MSG kIndexExceedsMaxTransformFeedbackAttribs = "Index must be less than MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS."; 227 MSG kIndexExceedsMaxUniformBufferBindings = "Index must be less than MAX_UNIFORM_BUFFER_BINDINGS."; 228 MSG kIndexExceedsMaxVertexAttribute = "Index must be less than MAX_VERTEX_ATTRIBS."; 229 MSG kIndexExceedsMaxWorkgroupDimensions = "Index must be less than the number of workgroup dimensions (3)."; 230 MSG kIndexExceedsSamples = "Index must be less than the value of SAMPLES."; 231 MSG kIndexExceedsTransformFeedbackBufferBindings = "Index is greater than or equal to the number of TRANSFORM_FEEDBACK_BUFFER indexed binding points."; 232 MSG kInsufficientBufferSize = "Insufficient buffer size."; 233 MSG kInsufficientParams = "More parameters are required than were provided."; 234 MSG kInsufficientVertexBufferSize = "Vertex buffer is not big enough for the draw call"; 235 MSG kIntegerOverflow = "Integer overflow."; 236 MSG kInternalErrorFormatNotFound = "Internal error: unknown internal format."; 237 MSG kInternalFormatRequiresTexture2D = "internalformat is an ETC1 or PVRTC1 format."; 238 MSG kInternalFormatRequiresTexture2DArray = "internalformat is an ETC2/EAC format and target is not GL_TEXTURE_2D_ARRAY."; 239 MSG kInternalFormatRequiresTexture2DArrayS3TC = "internalformat is an S3TC format and target is not GL_TEXTURE_2D_ARRAY."; 240 MSG kInternalFormatRequiresTexture2DArrayRGTC = "internalformat is an RGTC format and target is not GL_TEXTURE_2D_ARRAY."; 241 MSG kInternalFormatRequiresTexture2DArrayBPTC = "internalformat is a BPTC format and target is not GL_TEXTURE_2D_ARRAY."; 242 MSG kInternalFormatRequiresTexture2DArrayASTC = "internalformat is an ASTC format and target is not GL_TEXTURE_2D_ARRAY."; 243 MSG kInvalidAccessBits = "Invalid access bits."; 244 MSG kInvalidAccessBitsFlush = "The explicit flushing bit may only be set if the buffer is mapped for writing."; 245 MSG kInvalidAccessBitsRead = "Invalid access bits when mapping buffer for reading"; 246 MSG kInvalidAccessBitsReadWrite = "Need to map buffer for either reading or writing."; 247 MSG kInvalidAttachment = "Invalid Attachment Type."; 248 MSG kInvalidBindBufferSize = "Invalid buffer binding size."; 249 MSG kInvalidBindUniformLocation = "Location must be less than (MAX_VERTEX_UNIFORM_VECTORS + MAX_FRAGMENT_UNIFORM_VECTORS) * 4"; 250 MSG kInvalidBlendEquation = "Invalid blend equation."; 251 MSG kInvalidBlendFunction = "Invalid blend function."; 252 MSG kInvalidBlendStateForYUV = "Blending must be disabled when writing to YUV framebuffers."; 253 MSG kInvalidBooleanValue = "Invalid boolean value. Must be GL_FALSE or GL_TRUE."; 254 MSG kInvalidBorder = "Border must be 0."; 255 MSG kInvalidBufferName = "name is not a valid buffer."; 256 MSG kInvalidBufferTypes = "Invalid buffer target."; 257 MSG kInvalidBufferUsage = "Invalid buffer usage enum."; 258 MSG kInvalidBufferUsageFlags = "Invalid buffer usage flags."; 259 MSG kInvalidClearMask = "Invalid mask bits."; 260 MSG kInvalidClientState = "Invalid client vertex array type."; 261 MSG kInvalidClipPlane = "Invalid clip plane."; 262 MSG kInvalidColorMaskForYUV = "Red, green and blue color writes must be enabled when writing to YUV framebuffers."; 263 MSG kInvalidCombinedImageUnit = "Specified unit must be in [GL_TEXTURE0, GL_TEXTURE0 + GL_MAX_COMBINED_IMAGE_UNITS)"; 264 MSG kInvalidComponents = "Invalid components."; 265 MSG kInvalidCompressedFormat = "Not a valid compressed texture format."; 266 MSG kInvalidCompressedImageSize = "Invalid compressed image size."; 267 MSG kInvalidCompressedRegionSize = "Invalid region for compressed texture format."; 268 MSG kInvalidConstantColor = "CONSTANT_COLOR (or ONE_MINUS_CONSTANT_COLOR) and CONSTANT_ALPHA (or ONE_MINUS_CONSTANT_ALPHA) cannot be used together as source and destination color factors in the blend function."; 269 MSG kInvalidCopyCombination = "Invalid copy texture format combination."; 270 MSG kInvalidCoverageComponents = "components is not one of GL_RGB, GL_RGBA, GL_ALPHA or GL_NONE."; 271 MSG kInvalidCoverMode = "Invalid cover mode."; 272 MSG kInvalidExternalCreateFlags = "Create flags must only include bits defined by GL_ANGLE_external_objects_flags"; 273 MSG kInvalidCullMode = "Cull mode not recognized."; 274 MSG kInvalidDebugSeverity = "Invalid debug severity."; 275 MSG kInvalidDebugSource = "Invalid debug source."; 276 MSG kInvalidDebugSourceType = "If count is greater than zero, source and type cannot be GL_DONT_CARE."; 277 MSG kInvalidDebugType = "Invalid debug type."; 278 MSG kInvalidDefaultReadBuffer = "Read buffer must be GL_NONE or GL_BACK when reading from the default framebuffer."; 279 MSG kInvalidDepthEnum = "Invalid depth enum."; 280 MSG kInvalidDepthRange = "Near value cannot be greater than far."; 281 MSG kInvalidDepthStencilDrawBuffer = "Draw buffer must be zero when using depth or stencil."; 282 MSG kInvalidDestinationTexture = "Destination texture is not a valid texture object."; 283 MSG kInvalidDestinationTextureType = "Invalid destination texture type."; 284 MSG kInvalidDrawBuffer = "Invalid draw buffer."; 285 MSG kInvalidDrawBufferCountForDefault = "The default framebuffer must have exactly one draw buffer."; 286 MSG kInvalidDrawBufferValue = "Ith value does not match COLOR_ATTACHMENTi or NONE."; 287 MSG kInvalidDrawMode = "Invalid draw mode."; 288 MSG kInvalidDrawModeTransformFeedback = "Draw mode must match current transform feedback object's draw mode."; 289 MSG kInvalidEGLImage = "EGL image is not valid."; 290 MSG kInvalidElementRange = "Invalid element range."; 291 MSG kInvalidEmulatedFormat = "Implementation format is emulated."; 292 MSG kInvalidFence = "Invalid fence object."; 293 MSG kInvalidFenceCondition = "Invalid value for condition."; 294 MSG kInvalidFenceState = "Fence must be set."; 295 MSG kInvalidFillMode = "Invalid fill mode."; 296 MSG kInvalidFilterTexture = "Texture only supports NEAREST and LINEAR filtering."; 297 MSG kInvalidFlags = "Invalid value for flags."; 298 MSG kInvalidFlushOutOfRange = "Flushed range does not fit into buffer mapping dimensions."; 299 MSG kInvalidFlushTarget = "Attempted to flush a buffer not mapped for explicit flushing."; 300 MSG kInvalidFlushZero = "Attempted to flush buffer object zero."; 301 MSG kInvalidFogDensity = "Invalid fog density (must be nonnegative)."; 302 MSG kInvalidFogMode = "Invalid fog mode."; 303 MSG kInvalidFogParameter = "Invalid fog parameter."; 304 MSG kInvalidFormat = "Invalid format."; 305 MSG kInvalidFormatCombination = "Invalid combination of format, type and internalFormat."; 306 MSG kInvalidFragmentInputBinding = "No such binding."; 307 MSG kInvalidFramebufferAttachmentParameter = "Invalid parameter name for framebuffer attachment."; 308 MSG kInvalidFramebufferLayer = "Framebuffer layer cannot be less than 0 or greater than GL_MAX_FRAMEBUFFER_LAYERS_EXT."; 309 MSG kInvalidFramebufferName = "name is not a valid framebuffer."; 310 MSG kInvalidFramebufferTarget = "Invalid framebuffer target."; 311 MSG kInvalidFramebufferTextureLevel = "Mipmap level must be 0 when attaching a texture."; 312 MSG kInvalidHandleType = "Invalid handle type."; 313 MSG kInvalidImageAccess = "access is not one of the supported tokens."; 314 MSG kInvalidImageLayout = "Invalid image layout."; 315 MSG kInvalidImageFormat = "format is not one of supported image unit formats."; 316 MSG kInvalidIndentifier = "Invalid identifier."; 317 MSG kInvalidIndirectOffset = "indirect must be a multiple of the size of uint in basic machine units."; 318 MSG kInvalidInternalFormat = "Invalid internal format 0x%04X."; 319 MSG kInvalidLight = "Invalid light."; 320 MSG kInvalidLightModelParameter = "Invalid light model parameter."; 321 MSG kInvalidLightParameter = "Invalid light parameter."; 322 MSG kInvalidLogicOp = "Invalid logical operation."; 323 MSG kInvalidMapPointerQuery = "GL_BUFFER_MAP_POINTER can only be queried with GetBufferPointerv."; 324 MSG kInvalidMaterialFace = "Invalid material face."; 325 MSG kInvalidMaterialParameter = "Invalid material parameter."; 326 MSG kInvalidMatrixMode = "Invalid matrix mode."; 327 MSG kInvalidMemoryBarrierBit = "Invalid memory barrier bit."; 328 MSG kInvalidMemoryObject = "Invalid memory object."; 329 MSG kInvalidMemoryObjectParameter = "Invalid memory object parameter."; 330 MSG kInvalidMipLevel = "Level of detail outside of range."; 331 MSG kInvalidMipLevels = "Invalid level count."; 332 MSG kInvalidMultisampledFramebufferOperation = "Invalid operation on multisampled framebuffer"; 333 MSG kInvalidMultitextureUnit = "Specified unit must be in [GL_TEXTURE0, GL_TEXTURE0 + GL_MAX_TEXTURE_UNITS)"; 334 MSG kInvalidName = "Invalid name."; 335 MSG kInvalidNameCharacters = "Name contains invalid characters."; 336 MSG kInvalidOriginEnum = "Invalid origin enum."; 337 MSG kInvalidPackParametersForWebGL = "Invalid combination of pack parameters for WebGL."; 338 MSG kInvalidPerfMonitor = "Invalid perf monitor."; 339 MSG kInvalidPerfMonitorCounter = "Invalid perf monitor counter."; 340 MSG kInvalidPerfMonitorGroup = "Invalid perf monitor counter group."; 341 MSG kInvalidPname = "Invalid pname."; 342 MSG kInvalidPointerQuery = "Invalid pointer query."; 343 MSG kInvalidPointParameter = "Invalid point parameter."; 344 MSG kInvalidPointParameterValue = "Invalid point parameter value (must be non-negative)."; 345 MSG kInvalidPointSizeValue = "Invalid point size (must be positive)."; 346 MSG kInvalidPolygonMode = "Invalid polygon mode."; 347 MSG kInvalidPrecision = "Invalid or unsupported precision type."; 348 MSG kInvalidPrimitiveMode = "Invalid primitive mode."; 349 MSG kInvalidProgramBinaryFormat = "Program binary format is not valid."; 350 MSG kInvalidProgramInterface = "Invalid program interface."; 351 MSG kInvalidProgramName = "Program object expected."; 352 MSG kInvalidProgramPipelineName = "name is not a valid program pipeline."; 353 MSG kInvalidProgramResourceIndex = "Invalid program resource index."; 354 MSG kInvalidProgramResourceProperty = "Invalid program resource property."; 355 MSG kInvalidProjectionMatrix = "Invalid projection matrix. Left/right, top/bottom, near/far intervals cannot be zero, and near/far cannot be less than zero."; 356 MSG kInvalidPropCount = "Invalid propCount."; 357 MSG kInvalidPropertyForProgramInterface = "Not an allowed program resource property for this program interface"; 358 MSG kInvalidProvokingVertex = "Invalid provoking vertex."; 359 MSG kInvalidQueryId = "Invalid query Id."; 360 MSG kInvalidQueryName = "name is not a valid query."; 361 MSG kInvalidQueryTarget = "Invalid query target."; 362 MSG kInvalidQueryType = "Invalid query type."; 363 MSG kInvalidRange = "Invalid range."; 364 MSG kInvalidReadBuffer = "Invalid read buffer"; 365 MSG kInvalidRenderbufferInternalFormat = "Invalid renderbuffer internalformat."; 366 MSG kInvalidRenderbufferName = "name is not a valid renderbuffer."; 367 MSG kInvalidRenderbufferTarget = "Invalid renderbuffer target."; 368 MSG kInvalidRenderbufferTextureParameter = "Invalid parameter name for renderbuffer attachment."; 369 MSG kInvalidRenderbufferWidthHeight = "Renderbuffer width and height cannot be negative and cannot exceed maximum texture size."; 370 MSG kInvalidResetStatus = "Reset status is not valid"; 371 MSG kInvalidSampleMaskNumber = "MaskNumber cannot be greater than or equal to the value of MAX_SAMPLE_MASK_WORDS."; 372 MSG kInvalidSampler = "Sampler is not valid"; 373 MSG kInvalidSamplerName = "name is not a valid sampler."; 374 MSG kInvalidShaderBinaryFormat = "Invalid shader binary format."; 375 MSG kInvalidShaderBinary = "Invalid or incompatible shader binary."; 376 MSG kMismatchedShaderBinaryType = "Mismatched shader binary and shader object type."; 377 MSG kInvalidShaderCount = "Invalid Shader count."; 378 MSG kInvalidShaderName = "Shader object expected."; 379 MSG kInvalidShaderType = "Invalid shader type."; 380 MSG kInvalidShadingModel = "Invalid shading model."; 381 MSG kInvalidShadingRate = "Invalid shading rate."; 382 MSG kInvalidSourceTexture = "Source texture is not a valid texture object."; 383 MSG kInvalidSourceTextureInternalFormat = "Source texture internal format is invalid."; 384 MSG kInvalidSourceTextureLevel = "Invalid source texture level."; 385 MSG kInvalidSourceTextureSize = "Invalid source texture height or width."; 386 MSG kInvalidSourceTextureType = "Source texture must be a valid texture type."; 387 MSG kInvalidStencil = "Invalid stencil."; 388 MSG kInvalidStencilBitMask = "Invalid stencil bit mask."; 389 MSG kInvalidSyncPointer = "Not a valid sync pointer."; 390 MSG kInvalidTarget = "Invalid target."; 391 MSG kInvalidTextureCombine = "Invalid texture combine mode."; 392 MSG kInvalidTextureCombineOp = "Invalid texture combine operand."; 393 MSG kInvalidTextureCombineSrc = "Invalid texture combine source."; 394 MSG kInvalidTextureEnvMode = "Invalid texture environment mode."; 395 MSG kInvalidTextureEnvParameter = "Invalid texture environment parameter."; 396 MSG kInvalidTextureEnvScale = "Invalid texture environment scale."; 397 MSG kInvalidTextureEnvTarget = "Invalid texture environment target."; 398 MSG kInvalidTextureFilterParam = "Texture filter not recognized."; 399 MSG kInvalidTextureLevel = "Texture level does not exist."; 400 MSG kInvalidTextureName = "Not a valid texture object name."; 401 MSG kInvalidTextureRange = "Cannot be less than 0 or greater than maximum number of textures."; 402 MSG kInvalidTextureTarget = "Invalid or unsupported texture target."; 403 MSG kInvalidTextureType = "Texture has incompatible target."; 404 MSG kInvalidTextureWrap = "Texture wrap mode not recognized."; 405 MSG kInvalidTimeout = "Invalid value for timeout."; 406 MSG kInvalidTransformation = "Invalid transformation."; 407 MSG kInvalidTransformFeedbackAttribsCount = "Count exceeds MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS."; 408 MSG kInvalidTransformFeedbackName = "name is not a valid transform feedback."; 409 MSG kInvalidType = "Invalid type."; 410 MSG kInvalidUniformCount = "Only array uniforms may have count > 1."; 411 MSG kInvalidUniformLocation = "Invalid uniform location"; 412 MSG kInvalidUnpackAlignment = "Unpack alignment must be 1, 2, 4 or 8."; 413 MSG kInvalidUnpackParametersForWebGL = "Invalid combination of unpack parameters for WebGL."; 414 MSG kInvalidExternalUsageFlags = "Usage flags must only include bits defined by GL_ANGLE_external_objects_flags"; 415 MSG kInvalidValueExceedsMaxPatchSize = "Value must be less than or equal to MAX_PATCH_SIZE."; 416 MSG kInvalidValueNonPositive = "Value must be greater than zero."; 417 MSG kInvalidVaryingLocation = "Location exceeds max varying."; 418 MSG kInvalidVertexArray = "Vertex array does not exist."; 419 MSG kInvalidVertexArrayName = "name is not a valid vertex array."; 420 MSG kInvalidVertexAttribSize2101010 = "Type is INT_2_10_10_10_REV or UNSIGNED_INT_2_10_10_10_REV and size is not 4."; 421 MSG kInvalidVertexAttribSize1010102 = "Type is INT_10_10_10_2_OES or UNSIGNED_INT_10_10_10_2_OES and size is not 3 or 4."; 422 MSG kInvalidVertexAttrSize = "Vertex attribute size must be 1, 2, 3, or 4."; 423 MSG kInvalidVertexPointerSize = "Size for built-in vertex attribute is outside allowed range."; 424 MSG kInvalidVertexPointerStride = "Invalid stride for built-in vertex attribute."; 425 MSG kInvalidVertexPointerType = "Invalid type for built-in vertex attribute."; 426 MSG kInvalidWidth = "Invalid width."; 427 MSG kInvalidWrapModeTexture = "Invalid wrap mode for texture type."; 428 MSG kInvalidZOffset = "zoffset is larger than MAX_3D_TEXTURE_SIZE-1"; 429 MSG kLengthZero = "Length must not be zero."; 430 MSG kLevelNotZero = "Texture level must be zero."; 431 MSG kLightParameterOutOfRange = "Light parameter out of range."; 432 MSG kMapOutOfRange = "Mapped range does not fit into buffer dimensions."; 433 MSG kMaterialParameterOutOfRange = "Material parameter out of range."; 434 MSG kMatrixStackOverflow = "Current matrix stack is full."; 435 MSG kMatrixStackUnderflow = "Current matrix stack has only a single matrix."; 436 MSG kMaxActiveVariablesInterface = "MAX_NUM_ACTIVE_VARIABLES requires a buffer or block interface."; 437 MSG kMismatchedFormat = "Format must match internal format."; 438 MSG kMismatchedTargetAndFormat = "Invalid texture target and format combination."; 439 MSG kMismatchedTypeAndFormat = "Invalid format and type combination."; 440 MSG kMismatchedVariableProgram = "Variable is not part of the current program."; 441 MSG kMissingName = "No name given."; 442 MSG kMissingReadAttachment = "Missing read attachment."; 443 MSG kMissingTexture = "No Texture is bound to the specified target."; 444 MSG kMissingTextureName = "texture is not the name of an existing texture object."; 445 MSG kMultisampleArrayExtensionRequired = "GL_ANGLE_texture_multisample_array not enabled."; 446 MSG kMultisampleTextureExtensionOrES31Required = "GL_ANGLE_texture_multisample or GLES 3.1 required."; 447 MSG kMultisampleTextureExtensionOrGetTexLevelParameterExtensionOrES31Required = "GL_ANGLE_texture_multisample, GL_ANGLE_get_tex_level_parameter or GLES 3.1 required."; 448 MSG kMultiviewActive = "The number of views in the active draw framebuffer is greater than 1."; 449 MSG kMultiviewMismatch = "The number of views in the active program and draw framebuffer does not match."; 450 MSG kMultiviewNotAvailable = "OVR_multiview or OVR_multiview2 are not available."; 451 MSG kMultiviewReadFramebuffer = "The active read framebuffer object has multiview attachments."; 452 MSG kMultiviewTimerQuery = "There is an active query for target GL_TIME_ELAPSED_EXT when the number of views in the active draw framebuffer is greater than 1."; 453 MSG kMultiviewTransformFeedback = "There is an active transform feedback object when the number of views in the active draw framebuffer is greater than 1."; 454 MSG kMultiviewViewsTooLarge = "numViews cannot be greater than GL_MAX_VIEWS_ANGLE."; 455 MSG kMultiviewViewsTooSmall = "numViews cannot be less than 1."; 456 MSG kMustHaveElementArrayBinding = "Must have element array buffer bound."; 457 MSG kNameBeginsWithGL = "Attributes that begin with 'gl_' are not allowed."; 458 MSG kNegativeAttachments = "Negative number of attachments."; 459 MSG kNegativeBaseViewIndex = "Negative baseViewIndex."; 460 MSG kNegativeBufferSize = "Negative buffer size."; 461 MSG kNegativeBufSize = "Invalid bufSize."; 462 MSG kNegativeCount = "Negative count."; 463 MSG kNegativeHeightWidthDepth = "Cannot have negative height, width, or depth."; 464 MSG kNegativeLayer = "Negative layer."; 465 MSG kNegativeLength = "Negative length."; 466 MSG kNegativeLevel = "Level is negative."; 467 MSG kNegativeLocation = "Location cannot be less than 0."; 468 MSG kNegativeMaxCount = "Negative maxcount."; 469 MSG kNegativeOffset = "Negative offset."; 470 MSG kNegativeParam = "param is negative."; 471 MSG kNegativePrimcount = "Primcount must be greater than or equal to zero."; 472 MSG kNegativeSize = "Negative size."; 473 MSG kNegativeStart = "Cannot have negative start."; 474 MSG kNegativeStride = "Cannot have negative stride."; 475 MSG kNegativeXYZ = "x = y = or z cannot be negative."; 476 MSG kNoActiveComputeShaderStage = "No active compute shader stage in this program."; 477 MSG kNoActiveGeometryShaderStage = "No active geometry shader stage in this program."; 478 MSG kNoActiveGraphicsShaderStage = "It is a undefined behaviour to render without vertex shader stage or fragment shader stage."; 479 MSG kNoActiveProgramWithComputeShader = "No active program for the compute shader stage."; 480 MSG kNoDefinedClearConversion = "No defined conversion between clear value and attachment format."; 481 MSG kNonPositiveDrawTextureDimension = "Both width and height argument of drawn texture must be positive."; 482 MSG kNonPositiveSize = "Size must be greater than 0"; 483 MSG kNoProgramBinaryFormats = "No program binary formats supported."; 484 MSG kNoReadFramebuffer = "No active read framebuffer."; 485 MSG kNoSampleAlphaToCoveragesLimitation = "Current renderer doesn't support alpha-to-coverage."; 486 MSG kNotTextureComplete = "The texture is not complete."; 487 MSG kNoTransformArray = "No transform array given."; 488 MSG kNoTransformFeedbackOutputVariables = "The active program has specified no output variables to record."; 489 MSG kNoZeroDivisor = "At least one enabled attribute must have a divisor of zero."; 490 MSG kNVFenceNotSupported = "GL_NV_fence is not supported"; 491 MSG kObjectNotGenerated = "Object cannot be used because it has not been generated."; 492 MSG kOffsetAlignment = "offset must be a multiple of 4."; 493 MSG kOffsetAndSizeAlignment = "Offset and size must be multiple of 4."; 494 MSG kOffsetMustBeMultipleOfType = "Offset must be a multiple of the passed in datatype."; 495 MSG kOffsetMustBeMultipleOfUint = "Offset must be a multiple of sizeof(uint) in basic machine units."; 496 MSG kOffsetOverflow = "Offset overflows texture dimensions."; 497 MSG kOtherQueryActive = "Other query is active."; 498 MSG kOutsideOfBounds = "Parameter outside of bounds."; 499 MSG kParamOverflow = "The provided parameters overflow with the provided buffer."; 500 MSG kPixelDataNotNull = "Pixel data must be null."; 501 MSG kPixelDataNull = "Pixel data cannot be null."; 502 MSG kPixelPackBufferBoundForTransformFeedback = "It is undefined behavior to use a pixel pack buffer that is bound for transform feedback."; 503 MSG kPixelUnpackBufferBoundForTransformFeedback = "It is undefined behavior to use a pixel unpack buffer that is bound for transform feedback."; 504 MSG kPLSActive = "Operation not permitted while pixel local storage is active."; 505 MSG kPLSCapNotAllowed = "Cap 0x%04X cannot be enabled or disabled while pixel local storage is active."; 506 MSG kPLSDefaultFramebufferBound = "Default framebuffer object name 0 does not support pixel local storage."; 507 MSG kPLSDimensionsDontMatchRenderingArea = "Pixel local storage backing texture dimensions not equal to the rendering area."; 508 MSG kPLSDitherEnabled = "Attempted to begin pixel local storage with GL_DITHER enabled."; 509 MSG kPLSDrawBufferExceedsAttachmentLimit = "Argument <%s> must be less than MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE_ANGLE when pixel local storage is active."; 510 MSG kPLSDrawBufferExceedsCombinedAttachmentLimit = "Argument <%s> must be less than (MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_ANGLE - ACTIVE_PIXEL_LOCAL_STORAGE_PLANES_ANGLE) when pixel local storage is active."; 511 MSG kPLSEnablingDeinitializedPlane = "Attempted to enable a pixel local storage plane that is in a deinitialized state."; 512 MSG kPLSExtensionNotEnabled = "GL_ANGLE_shader_pixel_local_storage not enabled."; 513 MSG kPLSInactive = "Pixel local storage is not active."; 514 MSG kPLSInvalidInternalformat = "Invalid pixel local storage internal format."; 515 MSG kPLSInvalidLoadOperation = "Invalid pixel local storage Load Operation: 0x%04X."; 516 MSG kPLSInvalidStoreOperation = "Invalid pixel local storage Store Operation: 0x%04X."; 517 MSG kPLSInvalidTextureType = "Invalid pixel local storage texture type."; 518 MSG kPLSKeepingMemorylessPlane = "Load Operation GL_LOAD_OP_LOAD_ANGLE is invalid for memoryless planes."; 519 MSG kPLSLoadOpsNULL = "<loadops> cannot be null."; 520 MSG kPLSMaxColorAttachmentsExceded = "Framebuffer cannot have images attached to color attachment points on or after COLOR_ATTACHMENT0 + MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE_ANGLE."; 521 MSG kPLSMaxCombinedDrawBuffersAndPlanesExceded = "Framebuffer cannot have images attached to color attachment points on or after COLOR_ATTACHMENT0 + MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_ANGLE - <n>."; 522 MSG kPLSMismatchedBackingTextureSizes = "Mismatched pixel local storage backing texture sizes."; 523 MSG kPLSMultisamplingEnabled = "Attempted to begin pixel local storage with a multisampled framebuffer."; 524 MSG kPLSNNotEqualActivePlanes = "<n> != ACTIVE_PIXEL_LOCAL_STORAGE_PLANES_ANGLE"; 525 MSG kPLSNoAttachmentsNoTextureBacked = "Draw framebuffer has no attachments and no enabled, texture-backed pixel local storage planes."; 526 MSG kPLSInterruptOverflow = "Pixel local storage does not support more than 255 nested interruptions."; 527 MSG kPLSInterrupted = "Pixel local storage on the draw framebuffer is interrupted."; 528 MSG kPLSNotInterrupted = "Pixel local storage on the draw framebuffer is not interrupted."; 529 MSG kPLSParamsNULL = "<params> cannot be null."; 530 MSG kPLSPlaneLessThanZero = "Plane cannot be less than 0."; 531 MSG kPLSPlaneOutOfRange = "Plane must be less than GL_MAX_PIXEL_LOCAL_STORAGE_PLANES_ANGLE."; 532 MSG kPLSPlanesLessThanOne = "Planes must be greater than 0."; 533 MSG kPLSPlanesOutOfRange = "Planes must be less than or equal to GL_MAX_PIXEL_LOCAL_STORAGE_PLANES_ANGLE."; 534 MSG kPLSAdvancedBlendEnabled = "Attempted to begin pixel local storage with an advanced blend equation enabled."; 535 MSG kPLSAdvancedBlendNotSupported = "Advanced blend equations are not supported when pixel local storage is active."; 536 MSG kPLSRasterizerDiscardEnabled = "Attempted to begin pixel local storage with GL_RASTERIZER_DISCARD enabled."; 537 MSG kPLSTransformFeedbackActive = "Attempted to begin pixel local storage with transform feedback active."; 538 MSG kPLSReservedDrawBufferInUse = "When beginning pixel local storage, glDrawBuffers must all be GL_NONE at indices greater than or equal to: min(GL_MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PLS_ANGLE, GL_MAX_COMBINED_DRAW_BUFFERS_AND_PLS_PLANES_ANGLE - <n>)."; 539 MSG kPLSSecondaryBlendEnabled = "Attempted to begin pixel local storage with a blend function requiring the secondary color input."; 540 MSG kPLSSecondaryBlendNotSupported = "Blend functions requiring the secondary color input are not supported when pixel local storage is active."; 541 MSG kPointSizeArrayExtensionNotEnabled = "GL_OES_point_size_array not enabled."; 542 MSG kProgramDoesNotExist = "Program doesn't exist."; 543 MSG kProgramInterfaceMustBeProgramOutput = "programInterface must be set to GL_PROGRAM_OUTPUT."; 544 MSG kProgramNotBound = "A program must be bound."; 545 MSG kProgramNotLinked = "Program not linked."; 546 MSG kQueryActive = "Query is active."; 547 MSG kQueryExtensionNotEnabled = "Query extension not enabled."; 548 MSG kQueryInactive = "Query is not active."; 549 MSG kQueryTargetMismatch = "Query type does not match target."; 550 MSG kReadBufferNone = "Read buffer is GL_NONE."; 551 MSG kReadBufferNotAttached = "Read buffer has no attachment."; 552 MSG kRectangleTextureCompressed = "Rectangle texture cannot have a compressed format."; 553 MSG kRelativeOffsetTooLarge = "relativeOffset cannot be greater than MAX_VERTEX_ATTRIB_RELATIVE_OFFSET."; 554 MSG kRenderableInternalFormat = "SizedInternalformat must be color-renderable, depth-renderable, or stencil-renderable."; 555 MSG kRenderbufferNotBound = "A renderbuffer must be bound."; 556 MSG kResourceMaxRenderbufferSize = "Desired resource size is greater than max renderbuffer size."; 557 MSG kResourceMaxTextureSize = "Desired resource size is greater than max texture size."; 558 MSG kRobustResourceInitializationExtensionRequired = "EGL_ANGLE_robust_resource_initialization not enabled."; 559 MSG kSamplerFormatMismatch = "Mismatch between texture format and sampler type (signed/unsigned/float/shadow)."; 560 MSG kSamplerUniformValueOutOfRange = "Sampler uniform value out of range."; 561 MSG kSamplesOutOfRange = "Samples must not be greater than maximum supported value for the format."; 562 MSG kSamplesZero = "Samples may not be zero."; 563 MSG kShaderAttachmentHasShader = "Shader attachment already has a shader."; 564 MSG kShaderSourceInvalidCharacters = "Shader source contains invalid characters."; 565 MSG kShaderStorageBufferOffsetAlignment = "Offset must be multiple of value of SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT."; 566 MSG kShaderToDetachMustBeAttached = "Shader to be detached must be currently attached to the program."; 567 MSG kShadingRateExtensionNotAvailable = "GL_QCOM_shading_rate extension not available."; 568 MSG kSourceLevelNotDefined = "The source level of the source texture must be defined."; 569 MSG kSourceTextureLevelZeroDefined = "Source texture must level 0 defined."; 570 MSG kSourceTextureMustBeCompressed = "Source texture must have a compressed internal format."; 571 MSG kSourceTextureTooSmall = "The specified dimensions are outside of the bounds of the texture."; 572 MSG kStencilReferenceMaskOrMismatch = "Stencil reference and mask values must be the same for front facing and back facing triangles."; 573 MSG kStrideExceedsWebGLLimit = "Stride is over the maximum stride allowed by WebGL."; 574 MSG kStrideMustBeMultipleOfType = "Stride must be a multiple of the passed in datatype."; 575 MSG kSyncMissing = "Sync object does not exist."; 576 MSG kTargetMustBeTexture2DMultisampleArrayOES = "Target must be TEXTURE_2D_MULTISAMPLE_ARRAY_OES."; 577 MSG kTessellationShaderEXTNotEnabled = "GL_EXT_tessellation_shader extension not enabled."; 578 MSG kTessellationShaderOESNotEnabled = "GL_OES_tessellation_shader extension not enabled."; 579 MSG kTessellationShaderRequiresBothControlAndEvaluation = "Tessellation requires both control and evaluation shaders."; 580 MSG kTessellationShaderRequiresVertexShader = "Any command that transfers vertices to the GL requires a vertex shader if the current program uses a tessellation shader."; 581 MSG kTextureBufferExtensionNotAvailable = "Texture buffer extension not available."; 582 MSG kTextureBufferOffsetAlignment = "Offset must be multiple of value of TEXTURE_BUFFER_OFFSET_ALIGNMENT."; 583 MSG kTextureBufferSize = "Texture buffer size must be a positive integer."; 584 MSG kTextureBufferSizeOffset = "Texture buffer offset + size must be less than or equal to BUFFER_SIZE."; 585 MSG kTextureBufferTarget = "Target must be TEXTURE_BUFFER."; 586 MSG kTextureBufferInternalFormat = "Internal format is not an accepted sized internal format."; 587 MSG kTextureBufferInvalidBuffer = "If buffer is nonzero, it must match the name of an existing buffer object."; 588 MSG kTextureFormatMismatch = "Passed in texture target and format must match the one originally used to define the texture."; 589 MSG kTextureFoveationNotEnabled = "glTextureFoveationParametersQCOM called on a texture that does not support GL_FOVEATION_ENABLE_BIT_QCOM"; 590 MSG kTextureIsImmutable = "Texture is immutable."; 591 MSG kTextureIsNotImmutable = "Texture is not immutable."; 592 MSG kTextureIsNeitherImmutableNorTextureBuffer = "Texture is not the name of an immutable texture object or a buffer texture."; 593 MSG kTextureLayerOutOfRange = "Layer is larger than texture depth."; 594 MSG kTextureLevelOutOfRange = "Level is larger than texture level count."; 595 MSG kTextureNotBound = "A texture must be bound."; 596 MSG kTextureNotPow2 = "The texture is a non-power-of-two texture."; 597 MSG kTextureRectangleNotSupported = "Context does not support GL_ANGLE_texture_rectangle"; 598 MSG kTextureSizeTooSmall = "Texture dimensions must all be greater than zero."; 599 MSG kTextureTargetMismatch = "Textarget must match the texture target type."; 600 MSG kTextureTargetMismatchWithLabel = "Textarget must match the texture target type. Requested: %d Texture's: %d label: %s"; 601 MSG kTextureTargetRequiresES31 = "Texture target requires at least OpenGL ES 3.1."; 602 MSG kTextureTypeConflict = "Two textures of different types use the same sampler location."; 603 MSG kTextureTypeMismatch = "Passed in texture type must match the one originally used to define the texture."; 604 MSG kTextureWidthOrHeightOutOfRange = "Width and height must be less than or equal to GL_MAX_TEXTURE_SIZE."; 605 MSG kTextureDepthOutOfRange = "Depth must be less than or equal to MAX_ARRAY_TEXTURE_LAYERS"; 606 MSG kTransfomFeedbackAlreadyActive = "Transform feedback is already active."; 607 MSG kTransformFeedbackActiveDelete = "Attempt to delete an active transform feedback."; 608 MSG kTransformFeedbackActiveDuringLink = "Cannot link program while program is associated with an active transform feedback object."; 609 MSG kTransformFeedbackBufferDoubleBound = "A transform feedback buffer that would be written to is also bound to a non-transform-feedback target, which would cause undefined behavior."; 610 MSG kTransformFeedbackBufferMissing = "Every binding point used in transform feedback mode must have a buffer object bound."; 611 MSG kTransformFeedbackBufferMultipleOutputs = "Transform feedback has a buffer bound to multiple outputs."; 612 MSG kTransformFeedbackBufferTooSmall = "Not enough space in bound transform feedback buffers."; 613 MSG kTransformFeedbackDoesNotExist = "Transform feedback object that does not exist."; 614 MSG kTransformFeedbackNotActive = "No Transform Feedback object is active."; 615 MSG kTransformFeedbackNotPaused = "The active Transform Feedback object is not paused."; 616 MSG kTransformFeedbackPaused = "The active Transform Feedback object is paused."; 617 MSG kTransformFeedbackProgramBinary = "Cannot change program binary while program is associated with an active transform feedback object."; 618 MSG kTransformFeedbackTargetActive = "Target is TRANSFORM_FEEDBACK_BUFFER and transform feedback is currently active."; 619 MSG kTransformFeedbackUseProgram = "Cannot change active program while transform feedback is unpaused."; 620 MSG kTransformFeedbackVaryingIndexOutOfRange = "Index must be less than the transform feedback varying count in the program."; 621 MSG kTypeNotUnsignedShortByte = "Only UNSIGNED_SHORT and UNSIGNED_BYTE types are supported."; 622 MSG kUniformBufferBoundForTransformFeedback = "It is undefined behavior to use an uniform buffer that is bound for transform feedback."; 623 MSG kUniformBufferOffsetAlignment = "Offset must be multiple of value of UNIFORM_BUFFER_OFFSET_ALIGNMENT."; 624 MSG kUniformBufferTooSmall = "It is undefined behaviour to use a uniform buffer that is too small."; 625 MSG kUniformBufferUnbound = "It is undefined behaviour to have a used but unbound uniform buffer."; 626 MSG kUniformSizeMismatch = "Uniform size does not match uniform method."; 627 MSG kUniformTypeMismatch = "Uniform type does not match uniform method."; 628 MSG kUnimplementedComputeShaderPrecision = "Compute shader precision not yet implemented."; 629 MSG kUnknownParameter = "Unknown parameter value."; 630 MSG kUnsizedInternalFormatUnsupported = "Internalformat is one of the unsupported unsized base internalformats."; 631 MSG kUnsupportedDrawModeForTransformFeedback = "The draw command is unsupported when transform feedback is active and not paused."; 632 MSG kUnsupportedFloatBlending = "GL_BLEND with floating-point color attachments requires the EXT_float_blend extension."; 633 MSG kUnsupportedColorMaskForSharedExponentColorBuffer = "Color writemask for a GL_RGB9_E5 draw buffer must have the same values for red, green, and blue channels."; 634 MSG kVertexArrayNoBuffer = "An enabled vertex array has no buffer."; 635 MSG kVertexArrayNoBufferPointer = "An enabled vertex array has no buffer and no pointer."; 636 MSG kVertexBufferBoundForTransformFeedback = "It is undefined behavior to use a vertex buffer that is bound for transform feedback."; 637 MSG kVertexShaderTypeMismatch = "Vertex shader input type does not match the type of the bound vertex attribute."; 638 MSG kViewportNegativeSize = "Viewport size cannot be negative."; 639 MSG kViewsExceedMaxArrayLayers = "baseViewIndex+numViews cannot be greater than GL_MAX_ARRAY_TEXTURE_LAYERS."; 640 MSG kWebgl2NameLengthLimitExceeded = "Location lengths must not be greater than 1024 characters."; 641 MSG kWebglBindAttribLocationReservedPrefix = "Attributes that begin with 'webgl_', or '_webgl_' are not allowed."; 642 MSG kWebglNameLengthLimitExceeded = "Location name lengths must not be greater than 256 characters."; 643 MSG kYUVOutputMissmatch = "Program and framebuffer YUV output state does not match."; 644 MSG kYUVTargetExtensionRequired = "GL_EXT_YUV_target not enabled."; 645 MSG kZeroBoundToTarget = "Zero is bound to target."; 646 MSG kUnrecognizedShaderStageBit = "Unrecognized shader stage bit."; 647 MSG kProgramNotSeparable = "Program object was not linked with its PROGRAM_SEPARABLE status set."; 648 MSG kProgramPipelineDoesNotExist = "Program pipeline does not exist."; 649 MSG kNotAllStagesOfSeparableProgramUsed = "A program object is active for at least one, but not all of the shader stages that were present when the program was linked."; 650 MSG kNoExecutableCodeInstalled = "There is no current program object specified by UseProgram, there is a current program pipeline object, and that object is empty (no executable code is installed for any stage)."; 651 MSG kProgramPipelineLinkFailed = "Program pipeline link failed"; 652 MSG kProtectedTexturesExtensionRequired = "GL_EXT_protected_textures not enabled."; 653 // clang-format on 654 655 #undef MSG 656 } // namespace err 657 } // namespace gl 658 #endif // LIBANGLE_ERRORSTRINGS_H_ 659