diff options
| author | Tony Wasserka <neobrainx@gmail.com> | 2014-09-21 10:51:27 +0200 |
|---|---|---|
| committer | Tony Wasserka <neobrainx@gmail.com> | 2014-09-21 10:51:27 +0200 |
| commit | 124df2e1348938b3e44e9cedc6abc2a0054600d1 (patch) | |
| tree | 910100a61cf6d7b5d0dbdd712bdacd622858903e /Source/Core/Common | |
| parent | 536582b2ebf62e103b89b34c5d8e9099b6d7082e (diff) | |
| parent | 1d23c2ca8bfe41549970dc77da7d4b21950e11e6 (diff) | |
Merge pull request #1102 from neobrain/tevreg_loading
GPU: Only load the relevant color components upon writes to the tev color registers
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/ChunkFile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index 1d71c44d0f..98dafbeac6 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -13,6 +13,7 @@ // - Zero backwards/forwards compatibility // - Serialization code for anything complex has to be manually written. +#include <array> #include <cstddef> #include <deque> #include <list> @@ -159,6 +160,12 @@ public: Do(x.second); } + template <typename T, std::size_t N> + void DoArray(std::array<T,N>& x) + { + DoArray(x.data(), (u32)x.size()); + } + template <typename T> void DoArray(T* x, u32 count) { |
