Unofficial OpenGL Software Development Kit
0.5.0
|
Not every combination of ImageFormat parameters is considered valid. Some are functionally meaningless or inconsistent, while others are simply not allowed.
If the glimg::PixelDataType is not a compressed format, then:
ORDER_COMPRESSED
.BD_COMPRESSED
.If the glimg::PixelDataType is compressed format, then:
ORDER_COMPRESSED
.BD_COMPRESSED
.FMT_COLOR_RED
.FMT_COLOR_RG
.FMT_COLOR_RGB
.The glimg::PixelDataType DT_SHARED_EXP_FLOAT
can only be used with The glimg::ComponentOrder of ORDER_RGBE
, glimg::Bitdepth of BD_PACKED_32_BIT_5999_REV
, and a glimg::PixelComponents of FMT_COLOR_RGB
.
ORDER_RGBE
can only be used with the glimg::PixelDataType DT_SHARED_EXP_FLOAT
, as above.BD_PACKED_32_BIT_5999_REV
can only be used as above.If the glimg::PixelComponents includes depth:
ORDER_DEPTH_STENCIL
.DT_NORM_UNSIGNED_INTEGER
or DT_FLOAT
.DT_FLOAT
, then the glimg::Bitdepth must be BD_PER_COMP_32
and glimg::PixelComponents must be FMT_DEPTH
.DT_NORM_UNSIGNED_INTEGER
, then either of the following must be true:BD_PER_COMP_16
and glimg::PixelComponents must be FMT_DEPTH
.BD_PACKED_32_BIT_248
and glimg::PixelComponents must be FMT_DEPTH_X
.BD_PACKED_32_BIT_248
may only be used with a glimg::PixelComponents of FMT_DEPTH_X
.DT_FLOAT
must have a glimg::Bitdepth of 16-bit per component or greater, or must use BD_PACKED_32_BIT_101111_REV
.DT_NORM_UNSIGNED_INTEGER
.BD_PACKED_32_BIT_101111_REV
can only be used with a glimg::PixelDataType of DT_FLOAT
, a glimg::ComponentOrder of ORDER_RGBA
, and a glimg::PixelComponents of FMT_COLOR_RGB
.If the glimg::Bitdepth is packed, and the glimg::PixelComponents does not include depth, and the glimg::PixelDataType is not DT_SHARED_EXP_FLOAT
:
X
s don't count) can only be used with glimg::Bitdepth's of BD_PACKED_16_BIT_565
, BD_PACKED_16_BIT_565_REV
or BD_PACKED_32_BIT_101111_REV
.BD_PER_COMP_32
, then the glimg::PixelDataType must not be a normalized integer.ORDER_BGRA
may only be used on glimg::PixelComponents with 3 or more components.