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-dimensional 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 kGetImageCompressed = "Texture is compressed, call GetCompressedTexImage instead."; 189 MSG kGLES1Only = "GLES1-only function."; 190 MSG kImageSizeMustBeZero = "imageSize must be 0 if no texture data is provided."; 191 MSG kImageSizeTooSmall = "imageSize is too small."; 192 MSG kImmutableMemoryObject = "The memory object is immutable."; 193 MSG kImmutableTextureBound = "The value of TEXTURE_IMMUTABLE_FORMAT for the texture currently bound to target on the active texture unit is true."; 194 MSG kIncompatibleDrawModeAgainstGeometryShader = "Primitive mode is incompatible with the input primitive type of the geometry shader."; 195 MSG kIncompatibleDrawModeWithTessellationShader = "When tessellation is active the primitive mode must be GL_PATCHES."; 196 MSG kIncompatibleDrawModeWithoutTessellationShader = "When tessellation is not active the primitive mode must not be GL_PATCHES."; 197 MSG kIncompatibleTextures = "Texture formats are not compatible"; 198 MSG kIndexExceedsActiveUniformBlockCount = "Index exceeds active uniform block count."; 199 MSG kIndexExceedsMaxActiveUniform = "Index must be less than program active uniform count."; 200 MSG kIndexExceedsMaxActiveUniformBlock = "Index must be less than program active uniform block count."; 201 MSG kIndexExceedsMaxAtomicCounterBufferBindings = "Index must be less than MAX_ATOMIC_COUNTER_BUFFER_BINDINGS."; 202 MSG kIndexExceedsMaxDrawBuffer = "Index must be less than MAX_DRAW_BUFFERS."; 203 MSG kIndexExceedsMaxTransformFeedbackAttribs = "Index must be less than MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS."; 204 MSG kIndexExceedsMaxUniformBufferBindings = "Index must be less than MAX_UNIFORM_BUFFER_BINDINGS."; 205 MSG kIndexExceedsMaxVertexAttribute = "Index must be less than MAX_VERTEX_ATTRIBS."; 206 MSG kIndexExceedsMaxWorkgroupDimensions = "Index must be less than the number of workgroup dimensions (3)."; 207 MSG kIndexExceedsSamples = "Index must be less than the value of SAMPLES."; 208 MSG kIndexExceedsTransformFeedbackBufferBindings = "Index is greater than or equal to the number of TRANSFORM_FEEDBACK_BUFFER indexed binding points."; 209 MSG kInsufficientBufferSize = "Insufficient buffer size."; 210 MSG kInsufficientParams = "More parameters are required than were provided."; 211 MSG kInsufficientVertexBufferSize = "Vertex buffer is not big enough for the draw call"; 212 MSG kIntegerOverflow = "Integer overflow."; 213 MSG kInternalFormatRequiresTexture2D = "internalformat is an ETC1 or PVRTC1 format."; 214 MSG kInternalFormatRequiresTexture2DArray = "internalformat is an ETC2/EAC format and target is not GL_TEXTURE_2D_ARRAY."; 215 MSG kInternalFormatRequiresTexture2DArrayS3TC = "internalformat is an S3TC format and target is not GL_TEXTURE_2D_ARRAY."; 216 MSG kInternalFormatRequiresTexture2DArrayRGTC = "internalformat is an RGTC format and target is not GL_TEXTURE_2D_ARRAY."; 217 MSG kInternalFormatRequiresTexture2DArrayBPTC = "internalformat is a BPTC format and target is not GL_TEXTURE_2D_ARRAY."; 218 MSG kInternalFormatRequiresTexture2DArrayASTC = "internalformat is an ASTC format and target is not GL_TEXTURE_2D_ARRAY."; 219 MSG kInvalidAccessBits = "Invalid access bits."; 220 MSG kInvalidAccessBitsFlush = "The explicit flushing bit may only be set if the buffer is mapped for writing."; 221 MSG kInvalidAccessBitsRead = "Invalid access bits when mapping buffer for reading"; 222 MSG kInvalidAccessBitsReadWrite = "Need to map buffer for either reading or writing."; 223 MSG kInvalidAttachment = "Invalid Attachment Type."; 224 MSG kInvalidBindBufferSize = "Invalid buffer binding size."; 225 MSG kInvalidBindUniformLocation = "Location must be less than (MAX_VERTEX_UNIFORM_VECTORS + MAX_FRAGMENT_UNIFORM_VECTORS) * 4"; 226 MSG kInvalidBlendEquation = "Invalid blend equation."; 227 MSG kInvalidBlendFunction = "Invalid blend function."; 228 MSG kInvalidBlendStateForYUV = "Blending must be disabled when writing to YUV framebuffers."; 229 MSG kInvalidBooleanValue = "Invalid boolean value. Must be GL_FALSE or GL_TRUE."; 230 MSG kInvalidBorder = "Border must be 0."; 231 MSG kInvalidBufferName = "name is not a valid buffer."; 232 MSG kInvalidBufferTypes = "Invalid buffer target."; 233 MSG kInvalidBufferUsage = "Invalid buffer usage enum."; 234 MSG kInvalidBufferUsageFlags = "Invalid buffer usage flags."; 235 MSG kInvalidClearMask = "Invalid mask bits."; 236 MSG kInvalidClientState = "Invalid client vertex array type."; 237 MSG kInvalidClipPlane = "Invalid clip plane."; 238 MSG kInvalidColorMaskForYUV = "Red, green and blue color writes must be enabled when writing to YUV framebuffers."; 239 MSG kInvalidCombinedImageUnit = "Specified unit must be in [GL_TEXTURE0, GL_TEXTURE0 + GL_MAX_COMBINED_IMAGE_UNITS)"; 240 MSG kInvalidComponents = "Invalid components."; 241 MSG kInvalidCompressedFormat = "Not a valid compressed texture format."; 242 MSG kInvalidCompressedImageSize = "Invalid compressed image size."; 243 MSG kInvalidCompressedRegionSize = "Invalid region for compressed texture format."; 244 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."; 245 MSG kInvalidCopyCombination = "Invalid copy texture format combination."; 246 MSG kInvalidCoverageComponents = "components is not one of GL_RGB, GL_RGBA, GL_ALPHA or GL_NONE."; 247 MSG kInvalidCoverMode = "Invalid cover mode."; 248 MSG kInvalidExternalCreateFlags = "Create flags must only include bits defined by GL_ANGLE_external_objects_flags"; 249 MSG kInvalidCullMode = "Cull mode not recognized."; 250 MSG kInvalidDebugSeverity = "Invalid debug severity."; 251 MSG kInvalidDebugSource = "Invalid debug source."; 252 MSG kInvalidDebugSourceType = "If count is greater than zero, source and type cannot be GL_DONT_CARE."; 253 MSG kInvalidDebugType = "Invalid debug type."; 254 MSG kInvalidDefaultReadBuffer = "Read buffer must be GL_NONE or GL_BACK when reading from the default framebuffer."; 255 MSG kInvalidDepthEnum = "Invalid depth enum."; 256 MSG kInvalidDepthRange = "Near value cannot be greater than far."; 257 MSG kInvalidDepthStencilDrawBuffer = "Draw buffer must be zero when using depth or stencil."; 258 MSG kInvalidDestinationTexture = "Destination texture is not a valid texture object."; 259 MSG kInvalidDestinationTextureType = "Invalid destination texture type."; 260 MSG kInvalidDrawBuffer = "Invalid draw buffer."; 261 MSG kInvalidDrawBufferCountForDefault = "The default framebuffer must have exactly one draw buffer."; 262 MSG kInvalidDrawBufferValue = "Ith value does not match COLOR_ATTACHMENTi or NONE."; 263 MSG kInvalidDrawMode = "Invalid draw mode."; 264 MSG kInvalidDrawModeTransformFeedback = "Draw mode must match current transform feedback object's draw mode."; 265 MSG kInvalidEGLImage = "EGL image is not valid."; 266 MSG kInvalidElementRange = "Invalid element range."; 267 MSG kInvalidFence = "Invalid fence object."; 268 MSG kInvalidFenceCondition = "Invalid value for condition."; 269 MSG kInvalidFenceState = "Fence must be set."; 270 MSG kInvalidFillMode = "Invalid fill mode."; 271 MSG kInvalidFilterTexture = "Texture only supports NEAREST and LINEAR filtering."; 272 MSG kInvalidFlags = "Invalid value for flags."; 273 MSG kInvalidFlushOutOfRange = "Flushed range does not fit into buffer mapping dimensions."; 274 MSG kInvalidFlushTarget = "Attempted to flush a buffer not mapped for explicit flushing."; 275 MSG kInvalidFlushZero = "Attempted to flush buffer object zero."; 276 MSG kInvalidFogDensity = "Invalid fog density (must be nonnegative)."; 277 MSG kInvalidFogMode = "Invalid fog mode."; 278 MSG kInvalidFogParameter = "Invalid fog parameter."; 279 MSG kInvalidFormat = "Invalid format."; 280 MSG kInvalidFormatCombination = "Invalid combination of format, type and internalFormat."; 281 MSG kInvalidFragmentInputBinding = "No such binding."; 282 MSG kInvalidFramebufferAttachmentParameter = "Invalid parameter name for framebuffer attachment."; 283 MSG kInvalidFramebufferLayer = "Framebuffer layer cannot be less than 0 or greater than GL_MAX_FRAMEBUFFER_LAYERS_EXT."; 284 MSG kInvalidFramebufferName = "name is not a valid framebuffer."; 285 MSG kInvalidFramebufferTarget = "Invalid framebuffer target."; 286 MSG kInvalidFramebufferTextureLevel = "Mipmap level must be 0 when attaching a texture."; 287 MSG kInvalidHandleType = "Invalid handle type."; 288 MSG kInvalidImageAccess = "access is not one of the supported tokens."; 289 MSG kInvalidImageLayout = "Invalid image layout."; 290 MSG kInvalidImageFormat = "format is not one of supported image unit formats."; 291 MSG kInvalidIndentifier = "Invalid identifier."; 292 MSG kInvalidIndirectOffset = "indirect must be a multiple of the size of uint in basic machine units."; 293 MSG kInvalidInternalFormat = "Invalid internal format."; 294 MSG kInvalidLight = "Invalid light."; 295 MSG kInvalidLightModelParameter = "Invalid light model parameter."; 296 MSG kInvalidLightParameter = "Invalid light parameter."; 297 MSG kInvalidLogicOp = "Invalid logical operation."; 298 MSG kInvalidMapPointerQuery = "GL_BUFFER_MAP_POINTER can only be queried with GetBufferPointerv."; 299 MSG kInvalidMaterialFace = "Invalid material face."; 300 MSG kInvalidMaterialParameter = "Invalid material parameter."; 301 MSG kInvalidMatrixMode = "Invalid matrix mode."; 302 MSG kInvalidMemoryBarrierBit = "Invalid memory barrier bit."; 303 MSG kInvalidMemoryObject = "Invalid memory object."; 304 MSG kInvalidMemoryObjectParameter = "Invalid memory object parameter."; 305 MSG kInvalidMipLevel = "Level of detail outside of range."; 306 MSG kInvalidMipLevels = "Invalid level count."; 307 MSG kInvalidMultisampledFramebufferOperation = "Invalid operation on multisampled framebuffer"; 308 MSG kInvalidMultitextureUnit = "Specified unit must be in [GL_TEXTURE0, GL_TEXTURE0 + GL_MAX_TEXTURE_UNITS)"; 309 MSG kInvalidName = "Invalid name."; 310 MSG kInvalidNameCharacters = "Name contains invalid characters."; 311 MSG kInvalidOriginEnum = "Invalid origin enum."; 312 MSG kInvalidPackParametersForWebGL = "Invalid combination of pack parameters for WebGL."; 313 MSG kInvalidPname = "Invalid pname."; 314 MSG kInvalidPointerQuery = "Invalid pointer query."; 315 MSG kInvalidPointParameter = "Invalid point parameter."; 316 MSG kInvalidPointParameterValue = "Invalid point parameter value (must be non-negative)."; 317 MSG kInvalidPointSizeValue = "Invalid point size (must be positive)."; 318 MSG kInvalidPrecision = "Invalid or unsupported precision type."; 319 MSG kInvalidPrimitiveMode = "Invalid primitive mode."; 320 MSG kInvalidProgramBinaryFormat = "Program binary format is not valid."; 321 MSG kInvalidProgramInterface = "Invalid program interface."; 322 MSG kInvalidProgramName = "Program object expected."; 323 MSG kInvalidProgramPipelineName = "name is not a valid program pipeline."; 324 MSG kInvalidProgramResourceIndex = "Invalid program resource index."; 325 MSG kInvalidProgramResourceProperty = "Invalid program resource property."; 326 MSG kInvalidProjectionMatrix = "Invalid projection matrix. Left/right, top/bottom, near/far intervals cannot be zero, and near/far cannot be less than zero."; 327 MSG kInvalidPropCount = "Invalid propCount."; 328 MSG kInvalidPropertyForProgramInterface = "Not an allowed program resource property for this program interface"; 329 MSG kInvalidProvokingVertex = "Invalid provoking vertex."; 330 MSG kInvalidQueryId = "Invalid query Id."; 331 MSG kInvalidQueryName = "name is not a valid query."; 332 MSG kInvalidQueryTarget = "Invalid query target."; 333 MSG kInvalidQueryType = "Invalid query type."; 334 MSG kInvalidRange = "Invalid range."; 335 MSG kInvalidReadBuffer = "Invalid read buffer"; 336 MSG kInvalidRenderbufferInternalFormat = "Invalid renderbuffer internalformat."; 337 MSG kInvalidRenderbufferName = "name is not a valid renderbuffer."; 338 MSG kInvalidRenderbufferTarget = "Invalid renderbuffer target."; 339 MSG kInvalidRenderbufferTextureParameter = "Invalid parameter name for renderbuffer attachment."; 340 MSG kInvalidRenderbufferWidthHeight = "Renderbuffer width and height cannot be negative and cannot exceed maximum texture size."; 341 MSG kInvalidResetStatus = "Reset status is not valid"; 342 MSG kInvalidSampleMaskNumber = "MaskNumber cannot be greater than or equal to the value of MAX_SAMPLE_MASK_WORDS."; 343 MSG kInvalidSampler = "Sampler is not valid"; 344 MSG kInvalidSamplerName = "name is not a valid sampler."; 345 MSG kInvalidShaderBinaryFormat = "Invalid shader binary format."; 346 MSG kInvalidShaderName = "Shader object expected."; 347 MSG kInvalidShaderType = "Invalid shader type."; 348 MSG kInvalidShadingModel = "Invalid shading model."; 349 MSG kInvalidSourceTexture = "Source texture is not a valid texture object."; 350 MSG kInvalidSourceTextureInternalFormat = "Source texture internal format is invalid."; 351 MSG kInvalidSourceTextureLevel = "Invalid source texture level."; 352 MSG kInvalidSourceTextureSize = "Invalid source texture height or width."; 353 MSG kInvalidSourceTextureType = "Source texture must be a valid texture type."; 354 MSG kInvalidStencil = "Invalid stencil."; 355 MSG kInvalidStencilBitMask = "Invalid stencil bit mask."; 356 MSG kInvalidSyncPointer = "Not a valid sync pointer."; 357 MSG kInvalidTarget = "Invalid target."; 358 MSG kInvalidTextureCombine = "Invalid texture combine mode."; 359 MSG kInvalidTextureCombineOp = "Invalid texture combine operand."; 360 MSG kInvalidTextureCombineSrc = "Invalid texture combine source."; 361 MSG kInvalidTextureEnvMode = "Invalid texture environment mode."; 362 MSG kInvalidTextureEnvParameter = "Invalid texture environment parameter."; 363 MSG kInvalidTextureEnvScale = "Invalid texture environment scale."; 364 MSG kInvalidTextureEnvTarget = "Invalid texture environment target."; 365 MSG kInvalidTextureFilterParam = "Texture filter not recognized."; 366 MSG kInvalidTextureLevel = "Texture level does not exist."; 367 MSG kInvalidTextureName = "Not a valid texture object name."; 368 MSG kInvalidTextureRange = "Cannot be less than 0 or greater than maximum number of textures."; 369 MSG kInvalidTextureTarget = "Invalid or unsupported texture target."; 370 MSG kInvalidTextureType = "Texture has incompatible target."; 371 MSG kInvalidTextureWrap = "Texture wrap mode not recognized."; 372 MSG kInvalidTimeout = "Invalid value for timeout."; 373 MSG kInvalidTransformation = "Invalid transformation."; 374 MSG kInvalidTransformFeedbackAttribsCount = "Count exceeds MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS."; 375 MSG kInvalidTransformFeedbackName = "name is not a valid transform feedback."; 376 MSG kInvalidType = "Invalid type."; 377 MSG kInvalidUniformCount = "Only array uniforms may have count > 1."; 378 MSG kInvalidUniformLocation = "Invalid uniform location"; 379 MSG kInvalidUnpackAlignment = "Unpack alignment must be 1, 2, 4 or 8."; 380 MSG kInvalidUnpackParametersForWebGL = "Invalid combination of unpack parameters for WebGL."; 381 MSG kInvalidExternalUsageFlags = "Usage flags must only include bits defined by GL_ANGLE_external_objects_flags"; 382 MSG kInvalidValueExceedsMaxPatchSize = "Value must be less than or equal to MAX_PATCH_SIZE."; 383 MSG kInvalidValueNonPositive = "Value must be greater than zero."; 384 MSG kInvalidVaryingLocation = "Location exceeds max varying."; 385 MSG kInvalidVertexArray = "Vertex array does not exist."; 386 MSG kInvalidVertexArrayName = "name is not a valid vertex array."; 387 MSG kInvalidVertexAttribSize2101010 = "Type is INT_2_10_10_10_REV or UNSIGNED_INT_2_10_10_10_REV and size is not 4."; 388 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."; 389 MSG kInvalidVertexAttrSize = "Vertex attribute size must be 1, 2, 3, or 4."; 390 MSG kInvalidVertexPointerSize = "Size for built-in vertex attribute is outside allowed range."; 391 MSG kInvalidVertexPointerStride = "Invalid stride for built-in vertex attribute."; 392 MSG kInvalidVertexPointerType = "Invalid type for built-in vertex attribute."; 393 MSG kInvalidWidth = "Invalid width."; 394 MSG kInvalidWrapModeTexture = "Invalid wrap mode for texture type."; 395 MSG kInvalidZOffset = "zoffset is larger than MAX_3D_TEXTURE_SIZE-1"; 396 MSG kLengthZero = "Length must not be zero."; 397 MSG kLevelNotZero = "Texture level must be zero."; 398 MSG kLightParameterOutOfRange = "Light parameter out of range."; 399 MSG kMapOutOfRange = "Mapped range does not fit into buffer dimensions."; 400 MSG kMaterialParameterOutOfRange = "Material parameter out of range."; 401 MSG kMatrixStackOverflow = "Current matrix stack is full."; 402 MSG kMatrixStackUnderflow = "Current matrix stack has only a single matrix."; 403 MSG kMaxActiveVariablesInterface = "MAX_NUM_ACTIVE_VARIABLES requires a buffer or block interface."; 404 MSG kMismatchedFormat = "Format must match internal format."; 405 MSG kMismatchedTargetAndFormat = "Invalid texture target and format combination."; 406 MSG kMismatchedTypeAndFormat = "Invalid format and type combination."; 407 MSG kMismatchedVariableProgram = "Variable is not part of the current program."; 408 MSG kMissingName = "No name given."; 409 MSG kMissingReadAttachment = "Missing read attachment."; 410 MSG kMissingTexture = "No Texture is bound to the specified target."; 411 MSG kMissingTextureName = "texture is not the name of an existing texture object."; 412 MSG kMultisampleArrayExtensionRequired = "GL_ANGLE_texture_multisample_array not enabled."; 413 MSG kMultisampleTextureExtensionOrES31Required = "GL_ANGLE_texture_multisample or GLES 3.1 required."; 414 MSG kMultisampleTextureExtensionOrGetTexLevelParameterExtensionOrES31Required = "GL_ANGLE_texture_multisample, GL_ANGLE_get_tex_level_parameter or GLES 3.1 required."; 415 MSG kMultiviewActive = "The number of views in the active draw framebuffer is greater than 1."; 416 MSG kMultiviewMismatch = "The number of views in the active program and draw framebuffer does not match."; 417 MSG kMultiviewNotAvailable = "ANGLE_multiview is not available."; 418 MSG kMultiviewReadFramebuffer = "The active read framebuffer object has multiview attachments."; 419 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."; 420 MSG kMultiviewTransformFeedback = "There is an active transform feedback object when the number of views in the active draw framebuffer is greater than 1."; 421 MSG kMultiviewViewsTooLarge = "numViews cannot be greater than GL_MAX_VIEWS_ANGLE."; 422 MSG kMultiviewViewsTooSmall = "numViews cannot be less than 1."; 423 MSG kMustHaveElementArrayBinding = "Must have element array buffer bound."; 424 MSG kNameBeginsWithGL = "Attributes that begin with 'gl_' are not allowed."; 425 MSG kNegativeAttachments = "Negative number of attachments."; 426 MSG kNegativeBaseViewIndex = "Negative baseViewIndex."; 427 MSG kNegativeBufferSize = "Negative buffer size."; 428 MSG kNegativeBufSize = "Invalid bufSize."; 429 MSG kNegativeCount = "Negative count."; 430 MSG kNegativeHeightWidthDepth = "Cannot have negative height, width, or depth."; 431 MSG kNegativeLayer = "Negative layer."; 432 MSG kNegativeLength = "Negative length."; 433 MSG kNegativeLevel = "Level is negative."; 434 MSG kNegativeLocation = "Location cannot be less than 0."; 435 MSG kNegativeMaxCount = "Negative maxcount."; 436 MSG kNegativeOffset = "Negative offset."; 437 MSG kNegativeParam = "param is negative."; 438 MSG kNegativePrimcount = "Primcount must be greater than or equal to zero."; 439 MSG kNegativeSize = "Negative size."; 440 MSG kNegativeStart = "Cannot have negative start."; 441 MSG kNegativeStride = "Cannot have negative stride."; 442 MSG kNegativeXYZ = "x = y = or z cannot be negative."; 443 MSG kNoActiveComputeShaderStage = "No active compute shader stage in this program."; 444 MSG kNoActiveGeometryShaderStage = "No active geometry shader stage in this program."; 445 MSG kNoActiveGraphicsShaderStage = "It is a undefined behaviour to render without vertex shader stage or fragment shader stage."; 446 MSG kNoActiveProgramWithComputeShader = "No active program for the compute shader stage."; 447 MSG kNoDefinedClearConversion = "No defined conversion between clear value and attachment format."; 448 MSG kNonPositiveDrawTextureDimension = "Both width and height argument of drawn texture must be positive."; 449 MSG kNonPositiveSize = "Size must be greater than 0"; 450 MSG kNoProgramBinaryFormats = "No program binary formats supported."; 451 MSG kNoReadFramebuffer = "No active read framebuffer."; 452 MSG kNoSampleAlphaToCoveragesLimitation = "Current renderer doesn't support alpha-to-coverage."; 453 MSG kNotTextureComplete = "The texture is not complete."; 454 MSG kNoTransformArray = "No transform array given."; 455 MSG kNoTransformFeedbackOutputVariables = "The active program has specified no output variables to record."; 456 MSG kNoZeroDivisor = "At least one enabled attribute must have a divisor of zero."; 457 MSG kNVFenceNotSupported = "GL_NV_fence is not supported"; 458 MSG kObjectNotGenerated = "Object cannot be used because it has not been generated."; 459 MSG kOffsetAlignment = "offset must be a multiple of 4."; 460 MSG kOffsetAndSizeAlignment = "Offset and size must be multiple of 4."; 461 MSG kOffsetMustBeMultipleOfType = "Offset must be a multiple of the passed in datatype."; 462 MSG kOffsetMustBeMultipleOfUint = "Offset must be a multiple of sizeof(uint) in basic machine units."; 463 MSG kOffsetOverflow = "Offset overflows texture dimensions."; 464 MSG kOtherQueryActive = "Other query is active."; 465 MSG kOutsideOfBounds = "Parameter outside of bounds."; 466 MSG kParamOverflow = "The provided parameters overflow with the provided buffer."; 467 MSG kPixelDataNotNull = "Pixel data must be null."; 468 MSG kPixelDataNull = "Pixel data cannot be null."; 469 MSG kPixelPackBufferBoundForTransformFeedback = "It is undefined behavior to use a pixel pack buffer that is bound for transform feedback."; 470 MSG kPixelUnpackBufferBoundForTransformFeedback = "It is undefined behavior to use a pixel unpack buffer that is bound for transform feedback."; 471 MSG kPointSizeArrayExtensionNotEnabled = "GL_OES_point_size_array not enabled."; 472 MSG kProgramDoesNotExist = "Program doesn't exist."; 473 MSG kProgramInterfaceMustBeProgramOutput = "programInterface must be set to GL_PROGRAM_OUTPUT."; 474 MSG kProgramNotBound = "A program must be bound."; 475 MSG kProgramNotLinked = "Program not linked."; 476 MSG kQueryActive = "Query is active."; 477 MSG kQueryExtensionNotEnabled = "Query extension not enabled."; 478 MSG kQueryInactive = "Query is not active."; 479 MSG kQueryTargetMismatch = "Query type does not match target."; 480 MSG kReadBufferNone = "Read buffer is GL_NONE."; 481 MSG kReadBufferNotAttached = "Read buffer has no attachment."; 482 MSG kRectangleTextureCompressed = "Rectangle texture cannot have a compressed format."; 483 MSG kRelativeOffsetTooLarge = "relativeOffset cannot be greater than MAX_VERTEX_ATTRIB_RELATIVE_OFFSET."; 484 MSG kRenderableInternalFormat = "SizedInternalformat must be color-renderable, depth-renderable, or stencil-renderable."; 485 MSG kRenderbufferNotBound = "A renderbuffer must be bound."; 486 MSG kResourceMaxRenderbufferSize = "Desired resource size is greater than max renderbuffer size."; 487 MSG kResourceMaxTextureSize = "Desired resource size is greater than max texture size."; 488 MSG kRobustResourceInitializationExtensionRequired = "EGL_ANGLE_robust_resource_initialization not enabled."; 489 MSG kSamplerFormatMismatch = "Mismatch between texture format and sampler type (signed/unsigned/float/shadow)."; 490 MSG kSamplerUniformValueOutOfRange = "Sampler uniform value out of range."; 491 MSG kSamplesOutOfRange = "Samples must not be greater than maximum supported value for the format."; 492 MSG kSamplesZero = "Samples may not be zero."; 493 MSG kShaderAttachmentHasShader = "Shader attachment already has a shader."; 494 MSG kShaderSourceInvalidCharacters = "Shader source contains invalid characters."; 495 MSG kShaderStorageBufferOffsetAlignment = "Offset must be multiple of value of SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT."; 496 MSG kShaderToDetachMustBeAttached = "Shader to be detached must be currently attached to the program."; 497 MSG kSourceLevelNotDefined = "The source level of the source texture must be defined."; 498 MSG kSourceTextureLevelZeroDefined = "Source texture must level 0 defined."; 499 MSG kSourceTextureMustBeCompressed = "Source texture must have a compressed internal format."; 500 MSG kSourceTextureTooSmall = "The specified dimensions are outside of the bounds of the texture."; 501 MSG kStencilReferenceMaskOrMismatch = "Stencil reference and mask values must be the same for front facing and back facing triangles."; 502 MSG kStrideExceedsWebGLLimit = "Stride is over the maximum stride allowed by WebGL."; 503 MSG kStrideMustBeMultipleOfType = "Stride must be a multiple of the passed in datatype."; 504 MSG kSyncMissing = "Sync object does not exist."; 505 MSG kTargetMustBeTexture2DMultisampleArrayOES = "Target must be TEXTURE_2D_MULTISAMPLE_ARRAY_OES."; 506 MSG kTessellationShaderExtensionNotEnabled = "GL_EXT_tessellation_shader extension not enabled."; 507 MSG kTessellationShaderRequiresBothControlAndEvaluation = "Tessellation requires both control and evaluation shaders."; 508 MSG kTessellationShaderRequiresVertexShader = "Any command that transfers vertices to the GL requires a vertex shader if the current program uses a tessellation shader."; 509 MSG kTextureBufferExtensionNotAvailable = "Texture buffer extension not available."; 510 MSG kTextureBufferOffsetAlignment = "Offset must be multiple of value of TEXTURE_BUFFER_OFFSET_ALIGNMENT."; 511 MSG kTextureBufferSize = "Texture buffer size must be a positive integer."; 512 MSG kTextureBufferSizeOffset = "Texture buffer offset + size must be less than or equal to BUFFER_SIZE."; 513 MSG kTextureBufferTarget = "Target must be TEXTURE_BUFFER."; 514 MSG kTextureBufferInternalFormat = "Internal format is not an accepted sized internal format."; 515 MSG kTextureBufferInvalidBuffer = "If buffer is nonzero, it must match the name of an existing buffer object."; 516 MSG kTextureFormatMismatch = "Passed in texture target and format must match the one originally used to define the texture."; 517 MSG kTextureIsImmutable = "Texture is immutable."; 518 MSG kTextureIsNotImmutable = "Texture is not immutable."; 519 MSG kTextureNotBound = "A texture must be bound."; 520 MSG kTextureNotPow2 = "The texture is a non-power-of-two texture."; 521 MSG kTextureRectangleNotSupported = "Context does not support GL_ANGLE_texture_rectangle"; 522 MSG kTextureSizeTooSmall = "Texture dimensions must all be greater than zero."; 523 MSG kTextureTargetMismatch = "Textarget must match the texture target type."; 524 MSG kTextureTargetRequiresES31 = "Texture target requires at least OpenGL ES 3.1."; 525 MSG kTextureTypeConflict = "Two textures of different types use the same sampler location."; 526 MSG kTextureTypeMismatch = "Passed in texture type must match the one originally used to define the texture."; 527 MSG kTextureWidthOrHeightOutOfRange = "Width and height must be less than or equal to GL_MAX_TEXTURE_SIZE."; 528 MSG kTextureDepthOutOfRange = "Depth must be less than or equal to MAX_ARRAY_TEXTURE_LAYERS"; 529 MSG kTransfomFeedbackAlreadyActive = "Transform feedback is already active."; 530 MSG kTransformFeedbackActiveDelete = "Attempt to delete an active transform feedback."; 531 MSG kTransformFeedbackActiveDuringLink = "Cannot link program while program is associated with an active transform feedback object."; 532 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."; 533 MSG kTransformFeedbackBufferMissing = "Every binding point used in transform feedback mode must have a buffer object bound."; 534 MSG kTransformFeedbackBufferMultipleOutputs = "Transform feedback has a buffer bound to multiple outputs."; 535 MSG kTransformFeedbackBufferTooSmall = "Not enough space in bound transform feedback buffers."; 536 MSG kTransformFeedbackDoesNotExist = "Transform feedback object that does not exist."; 537 MSG kTransformFeedbackNotActive = "No Transform Feedback object is active."; 538 MSG kTransformFeedbackNotPaused = "The active Transform Feedback object is not paused."; 539 MSG kTransformFeedbackPaused = "The active Transform Feedback object is paused."; 540 MSG kTransformFeedbackProgramBinary = "Cannot change program binary while program is associated with an active transform feedback object."; 541 MSG kTransformFeedbackTargetActive = "Target is TRANSFORM_FEEDBACK_BUFFER and transform feedback is currently active."; 542 MSG kTransformFeedbackUseProgram = "Cannot change active program while transform feedback is unpaused."; 543 MSG kTransformFeedbackVaryingIndexOutOfRange = "Index must be less than the transform feedback varying count in the program."; 544 MSG kTypeNotUnsignedShortByte = "Only UNSIGNED_SHORT and UNSIGNED_BYTE types are supported."; 545 MSG kUniformBufferBoundForTransformFeedback = "It is undefined behavior to use an uniform buffer that is bound for transform feedback."; 546 MSG kUniformBufferOffsetAlignment = "Offset must be multiple of value of UNIFORM_BUFFER_OFFSET_ALIGNMENT."; 547 MSG kUniformBufferTooSmall = "It is undefined behaviour to use a uniform buffer that is too small."; 548 MSG kUniformBufferUnbound = "It is undefined behaviour to have a used but unbound uniform buffer."; 549 MSG kUniformSizeMismatch = "Uniform size does not match uniform method."; 550 MSG kUniformTypeMismatch = "Uniform type does not match uniform method."; 551 MSG kUnimplementedComputeShaderPrecision = "Compute shader precision not yet implemented."; 552 MSG kUnknownParameter = "Unknown parameter value."; 553 MSG kUnsizedInternalFormatUnsupported = "Internalformat is one of the unsupported unsized base internalformats."; 554 MSG kUnsupportedDrawModeForTransformFeedback = "The draw command is unsupported when transform feedback is active and not paused."; 555 MSG kUnsupportedFloatBlending = "GL_BLEND with floating-point color attachments requires the EXT_float_blend extension."; 556 MSG kVertexArrayNoBuffer = "An enabled vertex array has no buffer."; 557 MSG kVertexArrayNoBufferPointer = "An enabled vertex array has no buffer and no pointer."; 558 MSG kVertexBufferBoundForTransformFeedback = "It is undefined behavior to use a vertex buffer that is bound for transform feedback."; 559 MSG kVertexShaderTypeMismatch = "Vertex shader input type does not match the type of the bound vertex attribute."; 560 MSG kViewportNegativeSize = "Viewport size cannot be negative."; 561 MSG kViewsExceedMaxArrayLayers = "baseViewIndex+numViews cannot be greater than GL_MAX_ARRAY_TEXTURE_LAYERS."; 562 MSG kWebgl2NameLengthLimitExceeded = "Location lengths must not be greater than 1024 characters."; 563 MSG kWebglBindAttribLocationReservedPrefix = "Attributes that begin with 'webgl_', or '_webgl_' are not allowed."; 564 MSG kWebglNameLengthLimitExceeded = "Location name lengths must not be greater than 256 characters."; 565 MSG kYUVOutputMissmatch = "Program and framebuffer YUV output state does not match."; 566 MSG kYUVTargetExtensionRequired = "GL_EXT_YUV_target not enabled."; 567 MSG kZeroBoundToTarget = "Zero is bound to target."; 568 MSG kUnrecognizedShaderStageBit = "Unrecognized shader stage bit."; 569 MSG kProgramNotSeparable = "Program object was not linked with its PROGRAM_SEPARABLE status set."; 570 MSG kProgramPipelineDoesNotExist = "Program pipeline does not exist."; 571 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."; 572 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)."; 573 MSG kProgramPipelineLinkFailed = "Program pipeline link failed"; 574 MSG kProtectedTexturesExtensionRequired = "GL_EXT_protected_textures not enabled."; 575 576 // clang-format on 577 578 #undef MSG 579 } // namespace err 580 } // namespace gl 581 #endif // LIBANGLE_ERRORSTRINGS_H_ 582