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