GtfDdsSharp GtfDdsSharp
GtfDdsSharp GtfDdsSharp
DocFX + Singulink = ♥

Search Results for

    Class GtfUtils

    Provides extension methods for the various GTF types.

    Inheritance
    object
    GtfUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GtfDdsSharp
    Assembly: GtfDdsSharp.dll
    Syntax
    public static class GtfUtils

    Methods

    Name Description
    GetDepth(TextureFormat)

    Returns the depth of the specified texture.

    GetFileSize(GtfHeader)

    Computes the size of the GTF file in bytes.

    GetHeaderSize(GtfHeader)

    Computes the size of the GTF file's header, including texture attributes, in bytes.

    GetHeaderSize(uint)

    Computes the size of the GTF file's header, including texture attributes, in bytes.

    GetInvertFlag(TextureFormat)

    Returns a value describing how to invert memory when converting the specified texture.

    GetPitch(TextureFormat, uint)

    Computes the pitch from the specified texture and width.

    GetRawFormat(in GtfTextureInfo)

    Returns the texture's format without any flags.

    GetRawFormat(TextureFormat)

    Returns the texture format without any flags.

    IsDxtn(TextureFormat)

    Returns whether the texture is DXT compressed.

    IsRawCompressed(TextureFormat)

    Returns whether the texture is raw compressed.

    IsSwizzlable(in GtfTextureInfo)

    Returns whether the texture can use a swizzled memory layout.

    IsSwizzle(in GtfTextureInfo)

    Returns whether the texture uses a swizzled memory layout.

    IsSwizzle(TextureFormat)

    Returns whether the texture uses a swizzled memory layout.