summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-18 05:08:00 +0200
committerLioncash <mathew1800@gmail.com>2018-07-18 05:58:14 +0200
commite3fadb9616f20c3fe4c11ccd88394aa922115f56 (patch)
tree57ea80a3321eceeadc54c35ddc492283797864bc /src/video_core/textures
parentastc: In-class initialize member variables where appropriate (diff)
downloadyuzu-e3fadb9616f20c3fe4c11ccd88394aa922115f56.tar
yuzu-e3fadb9616f20c3fe4c11ccd88394aa922115f56.tar.gz
yuzu-e3fadb9616f20c3fe4c11ccd88394aa922115f56.tar.bz2
yuzu-e3fadb9616f20c3fe4c11ccd88394aa922115f56.tar.lz
yuzu-e3fadb9616f20c3fe4c11ccd88394aa922115f56.tar.xz
yuzu-e3fadb9616f20c3fe4c11ccd88394aa922115f56.tar.zst
yuzu-e3fadb9616f20c3fe4c11ccd88394aa922115f56.zip
Diffstat (limited to 'src/video_core/textures')
-rw-r--r--src/video_core/textures/astc.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp
index b2adbe888..bafd137d5 100644
--- a/src/video_core/textures/astc.cpp
+++ b/src/video_core/textures/astc.cpp
@@ -105,17 +105,12 @@ private:
template <typename IntType>
class Bits {
-private:
- const IntType& m_Bits;
-
- // Don't copy
- Bits() {}
- Bits(const Bits&) {}
- Bits& operator=(const Bits&) {}
-
public:
explicit Bits(IntType& v) : m_Bits(v) {}
+ Bits(const Bits&) = delete;
+ Bits& operator=(const Bits&) = delete;
+
uint8_t operator[](uint32_t bitPos) {
return static_cast<uint8_t>((m_Bits >> bitPos) & 1);
}
@@ -132,6 +127,9 @@ public:
uint64_t mask = (1 << (end - start + 1)) - 1;
return (m_Bits >> start) & mask;
}
+
+private:
+ const IntType& m_Bits;
};
enum EIntegerEncoding { eIntegerEncoding_JustBits, eIntegerEncoding_Quint, eIntegerEncoding_Trit };