#pragma warning disable 1591 using System.Runtime.InteropServices; namespace Brutal.KtxApi { public enum KtxErrorCode : int { /// Operation was successful. Success = 0, /// The data in the file is inconsistent with the spec. FileDataError, /// The file is a pipe or named pipe. FileIspipe, /// The target file could not be opened. FileOpenFailed, /// The operation would exceed the max file size. FileOverflow, /// An error occurred while reading from the file. FileReadError, /// An error occurred while seeking in the file. FileSeekError, /// File does not have enough data to satisfy request. FileUnexpectedEof, /// An error occurred while writing to the file. FileWriteError, /// GL operations resulted in an error. GlError, /// The operation is not allowed in the current state. InvalidOperation, /// A parameter value was not valid. InvalidValue, /// Requested metadata key or required dynamically loaded GPU function was not found. NotFound, /// Not enough memory to complete the operation. OutOfMemory, /// Transcoding of block compressed texture failed. TranscodeFailed, /// The file not a KTX file UnknownFileFormat, /// The KTX file specifies an unsupported texture type. UnsupportedTextureType, /// Feature not included in in-use library or not yet implemented. UnsupportedFeature, /// Library dependency (OpenGL or Vulkan) not linked into application. LibraryNotLinked, /// Decompressed byte count does not match expected byte size DecompressLengthError, /// Checksum mismatch when decompressing DecompressChecksumError, /// For safety checks. ErrorMaxEnum = 20, } } #pragma warning restore 1591