/* Convection Texture Tools Copyright (c) 2018-2019 Eric Lasota Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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. ------------------------------------------------------------------------------------- Portions based on DirectX Texture Library (DirectXTex) Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. http://go.microsoft.com/fwlink/?LinkId=248926 */ #include "ConvectionKernels_Config.h" #if !defined(CVTT_SINGLE_FILE) || defined(CVTT_SINGLE_FILE_IMPL) #include "ConvectionKernels_BC7_Prio.h" #define BC7_PARTITION_BITS … #define BC7_PARTITION_OFFSET_BITS … #define BC7_ROTATION_BITS … #define BC7_ROTATION_OFFSET_BITS … #define BC7_INDEX_MODE_BITS … #define BC7_INDEX_MODE_OFFSET_BITS … #define BC7_MODE_BITS … #define BC7_MODE_OFFSET_BITS … #define BC7_SEED_POINT_COUNT_BITS … #define BC7_SEED_POINT_COUNT_OFFSET_BITS … #define BC7_MODE_PRIO_DUAL_PLANE(subData) … #define BC7_MODE_PRIO_CODE(seedPointCount, mode, subData) … namespace cvtt { namespace Tables { namespace BC7Prio { const uint16_t g_bc7PrioCodesRGBData[] = …; const uint16_t *g_bc7PrioCodesRGB = …; const int g_bc7NumPrioCodesRGB = …; const uint16_t g_bc7PrioCodesRGBAData[] = …; const uint16_t *g_bc7PrioCodesRGBA = …; const int g_bc7NumPrioCodesRGBA = …; int UnpackMode(uint16_t packed) { … } int UnpackSeedPointCount(uint16_t packed) { … } int UnpackPartition(uint16_t packed) { … } int UnpackRotation(uint16_t packed) { … } int UnpackIndexSelector(uint16_t packed) { … } }}} #endif