inline float channelToFloat (const deUint8* value, TextureFormat::ChannelType type)
{
// make sure this table is updated if format table is updated
- DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
+ DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 42);
switch (type)
{
inline int channelToInt (const deUint8* value, TextureFormat::ChannelType type)
{
// make sure this table is updated if format table is updated
- DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
+ DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 42);
switch (type)
{
void floatToChannel (deUint8* dst, float src, TextureFormat::ChannelType type)
{
// make sure this table is updated if format table is updated
- DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
+ DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 42);
switch (type)
{
void intToChannel (deUint8* dst, int src, TextureFormat::ChannelType type)
{
// make sure this table is updated if format table is updated
- DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
+ DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 42);
switch (type)
{
case TextureFormat::SIGNED_INT8:
case TextureFormat::SIGNED_INT16:
case TextureFormat::SIGNED_INT32:
+ case TextureFormat::SIGNED_INT64:
return isColor;
case TextureFormat::UNSIGNED_INT8:
case TextureFormat::UNSIGNED_INT16:
case TextureFormat::UNSIGNED_INT24:
case TextureFormat::UNSIGNED_INT32:
+ case TextureFormat::UNSIGNED_INT64:
return isColor || format.order == TextureFormat::S;
case TextureFormat::HALF_FLOAT:
return 0u;
}
- DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
+ DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 42);
}
int getNumUsedChannels (TextureFormat::ChannelOrder order)
int getChannelSize (TextureFormat::ChannelType type)
{
// make sure this table is updated if format table is updated
- DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
+ DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 42);
switch (type)
{
case TextureFormat::SIGNED_INT8: return 1;
case TextureFormat::SIGNED_INT16: return 2;
case TextureFormat::SIGNED_INT32: return 4;
+ case TextureFormat::SIGNED_INT64: return 8;
case TextureFormat::UNSIGNED_INT8: return 1;
case TextureFormat::UNSIGNED_INT16: return 2;
case TextureFormat::UNSIGNED_INT24: return 3;
case TextureFormat::UNSIGNED_INT32: return 4;
+ case TextureFormat::UNSIGNED_INT64: return 8;
case TextureFormat::HALF_FLOAT: return 2;
case TextureFormat::FLOAT: return 4;
case TextureFormat::FLOAT64: return 8;
DE_ASSERT(isValid(format));
// make sure this table is updated if format table is updated
- DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
+ DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 42);
switch (type)
{
"SIGNED_INT8",
"SIGNED_INT16",
"SIGNED_INT32",
+ "SIGNED_INT64",
"UNSIGNED_INT8",
"UNSIGNED_INT16",
"UNSIGNED_INT24",
"UNSIGNED_INT32",
+ "UNSIGNED_INT64",
"HALF_FLOAT",
"FLOAT",
"FLOAT64",