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