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