Struct DdsHeader

Synopsis

#include <Source/Falcor/Utils/Image/DDSHeader.h>

struct DdsHeader

Description

No description yet.

Structures

PixelFormat

Source

Lines 35-99 in Source/Falcor/Utils/Image/DDSHeader.h.

struct DdsHeader
{
    struct PixelFormat
    {
        uint32_t structSize;
        uint32_t flags;
        uint32_t fourCC;
        uint32_t bitcount;
        uint32_t rMask;
        uint32_t gMask;
        uint32_t bMask;
        uint32_t aMask;
        // flags
        static const uint32_t kAlphaPixelsMask = 0x1;
        static const uint32_t kAlphaMask = 0x2;
        static const uint32_t kFourCCFlag = 0x4;
        static const uint32_t kRgbMask = 0x40;
        static const uint32_t kYuvMask = 0x200;
        static const uint32_t kLuminanceMask = 0x20000;
        static const uint32_t kBumpMask = 0x00080000;
    };
    uint32_t headerSize;
    uint32_t flags;
    uint32_t height;
    uint32_t width;
    union
    {
        uint32_t pitch;
        uint32_t linearSize;
    };
    uint32_t depth;
    uint32_t mipCount;
    uint32_t reserved[11];
    PixelFormat    pixelFormat;
    uint32_t caps[4];
    uint32_t reserved2;
    // Flags
    static const uint32_t kCapsMask = 0x1;
    static const uint32_t kHeightMask = 0x2;
    static const uint32_t kWidthMask = 0x4;
    static const uint32_t kPitchMask = 0x8;
    static const uint32_t kPixelFormatMask = 0x1000;
    static const uint32_t kMipCountMask = 0x20000;
    static const uint32_t kLinearSizeMask = 0x80000;
    static const uint32_t kDepthMask = 0x800000;
    // Caps[0]
    static const uint32_t kCapsComplexMask = 0x8;
    static const uint32_t kCapsMipMapMask = 0x400000;
    static const uint32_t kCapsTextureMask = 0x1000;
    // Caps[1]
    static const uint32_t kCaps2CubeMapMask = 0x200;
    static const uint32_t kCaps2CubeMapPosXMask = 0x400;
    static const uint32_t kCaps2CubeMapNegXMask = 0x800;
    static const uint32_t kCaps2CubeMapPosYMask = 0x1000;
    static const uint32_t kCaps2CubeMapNegYMask = 0x2000;
    static const uint32_t kCaps2CubeMapPosZMask = 0x4000;
    static const uint32_t kCaps2CubeMapNegZMask = 0x8000;
    static const uint32_t kCaps2VolumeMask = 0x200000;
};





Add Discussion as Guest

Log in to DocsForge