---
title: GLKTextureLoaderError.Code
framework: glkit
role: symbol
role_heading: Enumeration
path: glkit/glktextureloadererror-swift.struct/code
---

# GLKTextureLoaderError.Code

Values to be returned when a texture loader encounters an error.

## Declaration

```swift
enum Code
```

## Topics

### Initializers

- [init(rawValue:)](glkit/glktextureloadererror-swift.struct/code/init(rawvalue:).md)

### Type Properties

- [GLKTextureLoaderError.Code.alphaPremultiplicationFailure](glkit/glktextureloadererror-swift.struct/code/alphapremultiplicationfailure.md)
- [GLKTextureLoaderError.Code.compressedTextureUpload](glkit/glktextureloadererror-swift.struct/code/compressedtextureupload.md)
- [GLKTextureLoaderError.Code.cubeMapInvalidNumFiles](glkit/glktextureloadererror-swift.struct/code/cubemapinvalidnumfiles.md)
- [GLKTextureLoaderError.Code.dataPreprocessingFailure](glkit/glktextureloadererror-swift.struct/code/datapreprocessingfailure.md)
- [errorDomain](glkit/glktextureloadererror-swift.struct/errordomain.md)
- [GLKTextureLoaderError.Code.fileOrURLNotFound](glkit/glktextureloadererror-swift.struct/code/fileorurlnotfound.md)
- [GLKTextureLoaderError.Code.incompatibleFormatSRGB](glkit/glktextureloadererror-swift.struct/code/incompatibleformatsrgb.md)
- [GLKTextureLoaderError.Code.invalidCGImage](glkit/glktextureloadererror-swift.struct/code/invalidcgimage.md)
- [GLKTextureLoaderError.Code.invalidEAGLContext](glkit/glktextureloadererror-swift.struct/code/invalideaglcontext.md)
- [GLKTextureLoaderError.Code.invalidNSData](glkit/glktextureloadererror-swift.struct/code/invalidnsdata.md)
- [GLKTextureLoaderError.Code.mipmapUnsupported](glkit/glktextureloadererror-swift.struct/code/mipmapunsupported.md)
- [GLKTextureLoaderError.Code.pvrAtlasUnsupported](glkit/glktextureloadererror-swift.struct/code/pvratlasunsupported.md)
- [GLKTextureLoaderError.Code.reorientationFailure](glkit/glktextureloadererror-swift.struct/code/reorientationfailure.md)
- [GLKTextureLoaderError.Code.uncompressedTextureUpload](glkit/glktextureloadererror-swift.struct/code/uncompressedtextureupload.md)
- [GLKTextureLoaderError.Code.unknownFileType](glkit/glktextureloadererror-swift.struct/code/unknownfiletype.md)
- [GLKTextureLoaderError.Code.unknownPathType](glkit/glktextureloadererror-swift.struct/code/unknownpathtype.md)
- [GLKTextureLoaderError.Code.unsupportedBitDepth](glkit/glktextureloadererror-swift.struct/code/unsupportedbitdepth.md)
- [GLKTextureLoaderError.Code.unsupportedCubeMapDimensions](glkit/glktextureloadererror-swift.struct/code/unsupportedcubemapdimensions.md)
- [GLKTextureLoaderError.Code.unsupportedOrientation](glkit/glktextureloadererror-swift.struct/code/unsupportedorientation.md)
- [GLKTextureLoaderError.Code.unsupportedPVRFormat](glkit/glktextureloadererror-swift.struct/code/unsupportedpvrformat.md)
- [GLKTextureLoaderError.Code.unsupportedTextureTarget](glkit/glktextureloadererror-swift.struct/code/unsupportedtexturetarget.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [GLKTextureLoaderCallback](glkit/glktextureloadercallback.md)
- [Texture Loading Options](glkit/texture-loading-options.md)
- [Texture Error Handling](glkit/texture-error-handling.md)
