-
/****************************************************************************
-* Copyright (C) 2014-2015 Intel Corporation. All Rights Reserved.
+* Copyright (C) 2016 Intel Corporation. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
-*
+*
* @file format_traits.h
-*
-* @brief auto-generated file
-*
+*
+* @brief Format Traits. auto-generated file
+*
* DO NOT EDIT
-*
+*
******************************************************************************/
-
#pragma once
#include "format_types.h"
#include "utils.h"
-
//////////////////////////////////////////////////////////////////////////
/// FormatSwizzle - Component swizzle selects
//////////////////////////////////////////////////////////////////////////
static const bool isSRGB{ false };
static const bool isBC{ false };
static const bool isSubsampled{ false };
- static const uint32_t bcWidth{1};
- static const uint32_t bcHeight{1};
+ static const uint32_t bcWidth{ 1 };
+ static const uint32_t bcHeight{ 1 };
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32_32 TransposeT;
+ typedef Transpose32_32_32_32 TransposeT;
typedef Format4<32, 32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32_32 TransposeT;
+ typedef Transpose32_32_32_32 TransposeT;
typedef Format4<32, 32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32_32 TransposeT;
+ typedef Transpose32_32_32_32 TransposeT;
typedef Format4<32, 32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32_32 TransposeT;
+ typedef Transpose32_32_32_32 TransposeT;
typedef Format4<32, 32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32_32 TransposeT;
+ typedef Transpose32_32_32_32 TransposeT;
typedef Format4<32, 32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32_32 TransposeT;
+ typedef Transpose32_32_32_32 TransposeT;
typedef Format4<32, 32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32 TransposeT;
+ typedef Transpose32_32_32 TransposeT;
typedef Format3<32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32 TransposeT;
+ typedef Transpose32_32_32 TransposeT;
typedef Format3<32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32 TransposeT;
+ typedef Transpose32_32_32 TransposeT;
typedef Format3<32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32 TransposeT;
+ typedef Transpose32_32_32 TransposeT;
typedef Format3<32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32_32 TransposeT;
+ typedef Transpose32_32_32 TransposeT;
typedef Format3<32, 32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16_16 TransposeT;
+ typedef Transpose16_16_16_16 TransposeT;
typedef Format4<16, 16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose32_32 TransposeT;
- typedef Format2<32, 32> FormatT;
-};
-
-//////////////////////////////////////////////////////////////////////////
-/// FormatTraits<R32_FLOAT_X8X24_TYPELESS_LD> - Format traits specialization for R32_FLOAT_X8X24_TYPELESS_LD
-//////////////////////////////////////////////////////////////////////////
-template<> struct FormatTraits<R32_FLOAT_X8X24_TYPELESS_LD> :
- ComponentTraits<SWR_TYPE_FLOAT, 32, SWR_TYPE_UNUSED, 32>,
- FormatSwizzle<0, 1>,
- Defaults<0, 0, 0, 0x3f800000>
-{
- static const uint32_t bpp{ 64 };
- static const uint32_t numComps{ 1 };
- static const bool hasAlpha{ false };
- static const uint32_t alphaComp{ 3 };
- static const bool isSRGB{ false };
- static const bool isBC{ false };
- static const bool isSubsampled{ false };
- static const uint32_t bcWidth{ 1 };
- static const uint32_t bcHeight{ 1 };
-
- typedef Transpose32_32 TransposeT;
+ typedef Transpose32_32 TransposeT;
typedef Format2<32, 32> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose11_11_10 TransposeT;
+ typedef Transpose11_11_10 TransposeT;
typedef Format3<11, 11, 10> FormatT;
};
+//////////////////////////////////////////////////////////////////////////
+/// FormatTraits<R10G10B10_FLOAT_A2_UNORM> - Format traits specialization for R10G10B10_FLOAT_A2_UNORM
+//////////////////////////////////////////////////////////////////////////
+template<> struct FormatTraits<R10G10B10_FLOAT_A2_UNORM> :
+ ComponentTraits<SWR_TYPE_FLOAT, 10, SWR_TYPE_FLOAT, 10, SWR_TYPE_FLOAT, 10, SWR_TYPE_FLOAT, 2>,
+ FormatSwizzle<0, 1, 2, 3>,
+ Defaults<0, 0, 0, 0x3f800000>
+{
+ static const uint32_t bpp{ 32 };
+ static const uint32_t numComps{ 4 };
+ static const bool hasAlpha{ true };
+ static const uint32_t alphaComp{ 3 };
+ static const bool isSRGB{ false };
+ static const bool isBC{ false };
+ static const bool isSubsampled{ false };
+ static const uint32_t bcWidth{ 1 };
+ static const uint32_t bcHeight{ 1 };
+
+ typedef Transpose10_10_10_2 TransposeT;
+ typedef Format4<10, 10, 10, 2> FormatT;
+};
+
//////////////////////////////////////////////////////////////////////////
/// FormatTraits<R32_SINT> - Format traits specialization for R32_SINT
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<24> FormatT;
+ typedef Format1<24> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
-/// FormatTraits<R24_UNORM_X8_TYPELESS_LD> - Format traits specialization for R24_UNORM_X8_TYPELESS_LD
+/// FormatTraits<L32_UNORM> - Format traits specialization for L32_UNORM
//////////////////////////////////////////////////////////////////////////
-template<> struct FormatTraits<R24_UNORM_X8_TYPELESS_LD> :
- ComponentTraits<SWR_TYPE_UNORM, 24>,
+template<> struct FormatTraits<L32_UNORM> :
+ ComponentTraits<SWR_TYPE_UNORM, 32>,
FormatSwizzle<0>,
Defaults<0, 0, 0, 0x3f800000>
{
static const uint32_t bpp{ 32 };
static const uint32_t numComps{ 1 };
static const bool hasAlpha{ false };
- static const uint32_t alphaComp{ 3 };
+ static const uint32_t alphaComp{ 0 };
static const bool isSRGB{ false };
static const bool isBC{ false };
static const bool isSubsampled{ false };
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<24> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose24_8 TransposeT;
+ typedef Transpose24_8 TransposeT;
typedef Format2<24, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose24_8 TransposeT;
+ typedef Transpose24_8 TransposeT;
typedef Format2<24, 8> FormatT;
};
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose9_9_9_5 TransposeT;
+ typedef Transpose9_9_9_5 TransposeT;
typedef Format4<9, 9, 9, 5> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16 TransposeT;
+ typedef Transpose16_16 TransposeT;
typedef Format2<16, 16> FormatT;
};
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<32> TransposeT;
- typedef Format1<32> FormatT;
+ typedef Format1<32> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose5_6_5 TransposeT;
+ typedef Transpose5_6_5 TransposeT;
typedef Format3<5, 6, 5> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose5_6_5 TransposeT;
+ typedef Transpose5_6_5 TransposeT;
typedef Format3<5, 6, 5> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose5_5_5_1 TransposeT;
+ typedef Transpose5_5_5_1 TransposeT;
typedef Format4<5, 5, 5, 1> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose5_5_5_1 TransposeT;
+ typedef Transpose5_5_5_1 TransposeT;
typedef Format4<5, 5, 5, 1> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose4_4_4_4 TransposeT;
+ typedef Transpose4_4_4_4 TransposeT;
typedef Format4<4, 4, 4, 4> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose4_4_4_4 TransposeT;
+ typedef Transpose4_4_4_4 TransposeT;
typedef Format4<4, 4, 4, 4> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose5_5_5_1 TransposeT;
+ typedef Transpose5_5_5_1 TransposeT;
typedef Format4<5, 5, 5, 1> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose5_5_5_1 TransposeT;
+ typedef Transpose5_5_5_1 TransposeT;
typedef Format4<5, 5, 5, 1> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<16> TransposeT;
- typedef Format1<16> FormatT;
+ typedef Format1<16> FormatT;
+};
+
+//////////////////////////////////////////////////////////////////////////
+/// FormatTraits<A1B5G5R5_UNORM> - Format traits specialization for A1B5G5R5_UNORM
+//////////////////////////////////////////////////////////////////////////
+template<> struct FormatTraits<A1B5G5R5_UNORM> :
+ ComponentTraits<SWR_TYPE_UNORM, 1, SWR_TYPE_UNORM, 5, SWR_TYPE_UNORM, 5, SWR_TYPE_UNORM, 5>,
+ FormatSwizzle<3, 2, 1, 0>,
+ Defaults<0, 0, 0, 0x3f800000>
+{
+ static const uint32_t bpp{ 16 };
+ static const uint32_t numComps{ 4 };
+ static const bool hasAlpha{ true };
+ static const uint32_t alphaComp{ 3 };
+ static const bool isSRGB{ false };
+ static const bool isBC{ false };
+ static const bool isSubsampled{ false };
+ static const uint32_t bcWidth{ 1 };
+ static const uint32_t bcHeight{ 1 };
+
+ typedef Transpose1_5_5_5 TransposeT;
+ typedef Format4<1, 5, 5, 5> FormatT;
+};
+
+//////////////////////////////////////////////////////////////////////////
+/// FormatTraits<A4B4G4R4_UNORM> - Format traits specialization for A4B4G4R4_UNORM
+//////////////////////////////////////////////////////////////////////////
+template<> struct FormatTraits<A4B4G4R4_UNORM> :
+ ComponentTraits<SWR_TYPE_UNORM, 4, SWR_TYPE_UNORM, 4, SWR_TYPE_UNORM, 4, SWR_TYPE_UNORM, 4>,
+ FormatSwizzle<3, 2, 1, 0>,
+ Defaults<0, 0, 0, 0x3f800000>
+{
+ static const uint32_t bpp{ 16 };
+ static const uint32_t numComps{ 4 };
+ static const bool hasAlpha{ true };
+ static const uint32_t alphaComp{ 3 };
+ static const bool isSRGB{ false };
+ static const bool isBC{ false };
+ static const bool isSubsampled{ false };
+ static const uint32_t bcWidth{ 1 };
+ static const uint32_t bcHeight{ 1 };
+
+ typedef Transpose4_4_4_4 TransposeT;
+ typedef Format4<4, 4, 4, 4> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8 TransposeT;
+ typedef Transpose8_8 TransposeT;
typedef Format2<8, 8> FormatT;
};
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcHeight{ 1 };
typedef TransposeSingleComponent<8> TransposeT;
- typedef Format1<8> FormatT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 2 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<64> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<64> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<64> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 2 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8_8 TransposeT;
+ typedef Transpose8_8_8_8 TransposeT;
typedef Format4<8, 8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8 TransposeT;
+ typedef Transpose8_8_8 TransposeT;
typedef Format3<8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8 TransposeT;
+ typedef Transpose8_8_8 TransposeT;
typedef Format3<8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8 TransposeT;
+ typedef Transpose8_8_8 TransposeT;
typedef Format3<8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8 TransposeT;
+ typedef Transpose8_8_8 TransposeT;
typedef Format3<8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<64> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16 TransposeT;
+ typedef Transpose16_16_16 TransposeT;
typedef Format3<16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16 TransposeT;
+ typedef Transpose16_16_16 TransposeT;
typedef Format3<16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16 TransposeT;
+ typedef Transpose16_16_16 TransposeT;
typedef Format3<16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16 TransposeT;
+ typedef Transpose16_16_16 TransposeT;
typedef Format3<16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16 TransposeT;
+ typedef Transpose16_16_16 TransposeT;
typedef Format3<16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 4 };
static const uint32_t bcHeight{ 4 };
- typedef TransposeSingleComponent<128> TransposeT;
- typedef Format1<8> FormatT;
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
};
//////////////////////////////////////////////////////////////////////////
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8 TransposeT;
+ typedef Transpose8_8_8 TransposeT;
typedef Format3<8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16 TransposeT;
+ typedef Transpose16_16_16 TransposeT;
typedef Format3<16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose16_16_16 TransposeT;
+ typedef Transpose16_16_16 TransposeT;
typedef Format3<16, 16, 16> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose10_10_10_2 TransposeT;
+ typedef Transpose10_10_10_2 TransposeT;
typedef Format4<10, 10, 10, 2> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8 TransposeT;
+ typedef Transpose8_8_8 TransposeT;
typedef Format3<8, 8, 8> FormatT;
};
static const uint32_t bcWidth{ 1 };
static const uint32_t bcHeight{ 1 };
- typedef Transpose8_8_8 TransposeT;
+ typedef Transpose8_8_8 TransposeT;
typedef Format3<8, 8, 8> FormatT;
};
+//////////////////////////////////////////////////////////////////////////
+/// FormatTraits<RAW> - Format traits specialization for RAW
+//////////////////////////////////////////////////////////////////////////
+template<> struct FormatTraits<RAW> :
+ ComponentTraits<SWR_TYPE_UINT, 8>,
+ FormatSwizzle<0>,
+ Defaults<0, 0, 0, 0x1>
+{
+ static const uint32_t bpp{ 8 };
+ static const uint32_t numComps{ 1 };
+ static const bool hasAlpha{ false };
+ static const uint32_t alphaComp{ 3 };
+ static const bool isSRGB{ false };
+ static const bool isBC{ false };
+ static const bool isSubsampled{ false };
+ static const uint32_t bcWidth{ 1 };
+ static const uint32_t bcHeight{ 1 };
+
+ typedef TransposeSingleComponent<8> TransposeT;
+ typedef Format1<8> FormatT;
+};