ezEngine  Milestone 7
ezGALResourceFormat Struct Reference

Public Types

enum  Enum {
  Invalid = 0, RGBAFloat, XYZWFloat = RGBAFloat, RGBAUInt,
  RGBAInt, RGBFloat, XYZFloat = RGBFloat, UVWFloat = RGBFloat,
  RGBUInt, RGBInt, B5G6R5UNormalized, BGRAUByteNormalized,
  BGRAUByteNormalizedsRGB, RGBAHalf, XYZWHalf = RGBAHalf, RGBAUShort,
  RGBAUShortNormalized, RGBAShort, RGBAShortNormalized, RGFloat,
  XYFloat = RGFloat, UVFloat = RGFloat, RGUInt, RGInt,
  RGB10A2UInt, RGB10A2UIntNormalized, RG11B10Float, RGBAUByteNormalized,
  RGBAUByteNormalizedsRGB, RGBAUByte, RGBAByteNormalized, RGBAByte,
  RGHalf, XYHalf = RGHalf, UVHalf = RGHalf, RGUShort,
  RGUShortNormalized, RGShort, RGShortNormalized, RGUByte,
  RGUByteNormalized, RGByte, RGByteNormalized, DFloat,
  RFloat, RUInt, RInt, RHalf,
  RUShort, RUShortNormalized, RShort, RShortNormalized,
  RUByte, RUByteNormalized, RByte, RByteNormalized,
  AUByteNormalized, D24S8, BC1, BC1sRGB,
  BC2, BC2sRGB, BC3, BC3sRGB,
  BC4UNormalized, BC4Normalized, BC5UNormalized, BC5Normalized,
  BC6UFloat, BC6Float, BC7UNormalized, BC7UNormalizedsRGB,
  ENUM_COUNT
}
 

Static Public Member Functions

static
EZ_RENDERERFOUNDATION_DLL
ezUInt32 
GetBitsPerElement (ezGALResourceFormat::Enum format)
 The size in bits per element (usually pixels, except for mesh stream elements) of a single element of the given resource format.
 
static
EZ_RENDERERFOUNDATION_DLL
ezUInt8 
GetChannelCount (ezGALResourceFormat::Enum format)
 The number of color channels this format contains.
 

Static Private Attributes

static const ezUInt8 BitsPerElement [ezGALResourceFormat::ENUM_COUNT]
 
static const ezUInt8 ChannelCount [ezGALResourceFormat::ENUM_COUNT]
 

Member Data Documentation

const ezUInt8 ezGALResourceFormat::BitsPerElement
staticprivate
Todo:
A combination of propertyflags, something like srgb, normalized, ...

The documentation for this struct was generated from the following files: