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