mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
IWYU pass
This commit is contained in:
parent
539980f75f
commit
caef02e57f
@ -22,6 +22,7 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <climits>
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "Color.h"
|
||||
|
@ -18,8 +18,8 @@
|
||||
*/
|
||||
#include "Texture.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <stdexcept>
|
||||
#include <type_traits>
|
||||
|
||||
#include "Color.h"
|
||||
|
||||
|
@ -19,13 +19,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
#include "Block.h"
|
||||
#include "Color.h"
|
||||
#include "ndebug.h"
|
||||
|
||||
namespace quicktex {
|
||||
|
||||
|
@ -23,8 +23,8 @@
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Color.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "BC1Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
@ -20,11 +20,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Decoder.h"
|
||||
#include "../../Texture.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "../interpolator/Interpolator.h"
|
||||
#include "BC1Block.h"
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
@ -31,11 +32,11 @@
|
||||
#include "../../Block.h"
|
||||
#include "../../Color.h"
|
||||
#include "../../Matrix4x4.h"
|
||||
#include "../../Texture.h"
|
||||
#include "../../Vector4.h"
|
||||
#include "../../Vector4Int.h"
|
||||
#include "../../bitwiseEnums.h"
|
||||
#include "../../util.h"
|
||||
#include "../interpolator/Interpolator.h"
|
||||
#include "Histogram.h"
|
||||
#include "OrderTable.h"
|
||||
#include "SingleColorTable.h"
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Color.h"
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <mutex>
|
||||
#include <type_traits>
|
||||
|
||||
#include "../../Vector4.h"
|
||||
#include "Histogram.h"
|
||||
|
@ -19,10 +19,7 @@
|
||||
|
||||
#include "BC3Decoder.h"
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "BC3Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Decoder.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "../../Texture.h"
|
||||
#include "../bc1/BC1Decoder.h"
|
||||
#include "../bc4/BC4Decoder.h"
|
||||
#include "../interpolator/Interpolator.h"
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include "BC3Encoder.h"
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../bc1/BC1Block.h"
|
||||
#include "../bc4/BC4Block.h"
|
||||
#include "BC3Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Encoder.h"
|
||||
#include "../../Texture.h"
|
||||
#include "../bc1/BC1Encoder.h"
|
||||
#include "../bc4/BC4Encoder.h"
|
||||
#include "../interpolator/Interpolator.h"
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include <array> // for array
|
||||
#include <cassert> // for assert
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Color.h"
|
||||
#include "BC4Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
@ -19,13 +19,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Decoder.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "../../Texture.h"
|
||||
#include "BC4Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
#include "../../Color.h"
|
||||
#include "../../Block.h"
|
||||
#include "BC4Block.h"
|
||||
|
||||
|
@ -19,13 +19,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Encoder.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "../../Texture.h"
|
||||
#include "BC4Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include "BC5Decoder.h"
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "BC5Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
@ -25,9 +25,8 @@
|
||||
#include <type_traits>
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Texture.h"
|
||||
#include "../../Decoder.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "../../Texture.h"
|
||||
#include "../bc4/BC4Decoder.h"
|
||||
#include "BC5Block.h"
|
||||
|
||||
|
@ -19,6 +19,9 @@
|
||||
|
||||
#include "BC5Encoder.h"
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../bc4/BC4Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
BC5Block BC5Encoder::EncodeBlock(const ColorBlock<4, 4> &pixels) const {
|
||||
auto output = BC5Block();
|
||||
|
@ -26,12 +26,11 @@
|
||||
|
||||
#include "../../Block.h"
|
||||
#include "../../Encoder.h"
|
||||
#include "../../ndebug.h"
|
||||
#include "../../Texture.h"
|
||||
#include "../bc4/BC4Encoder.h"
|
||||
#include "BC5Block.h"
|
||||
|
||||
namespace quicktex::s3tc {
|
||||
|
||||
class BC5Encoder : public BlockEncoder<BlockTexture<BC5Block>> {
|
||||
public:
|
||||
using ChannelPair = std::tuple<uint8_t, uint8_t>;
|
||||
|
@ -55,7 +55,6 @@ function(set_project_warnings project_name)
|
||||
-Wpedantic # warn if non-standard C++ is used
|
||||
#-Wconversion # warn on type conversions that may lose data
|
||||
#-Wsign-conversion # warn on sign conversions
|
||||
-Wenum-conversion
|
||||
-Wnull-dereference # warn if a null dereference is detected
|
||||
-Wdouble-promotion # warn if float is implicit promoted to double
|
||||
-Wformat=2 # warn on security issues around functions that format output
|
||||
|
Loading…
Reference in New Issue
Block a user