diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-26 07:01:48 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-26 07:01:48 +0100 |
commit | 5219edd7153d22d4c34150c13d050eca2831b563 (patch) | |
tree | 680273f6804b3ef6d3625b6a1fc65e6786223aad /src/video_core/engines/maxwell_3d.h | |
parent | Merge pull request #2156 from FreddyFunk/patch-1 (diff) | |
download | yuzu-5219edd7153d22d4c34150c13d050eca2831b563.tar yuzu-5219edd7153d22d4c34150c13d050eca2831b563.tar.gz yuzu-5219edd7153d22d4c34150c13d050eca2831b563.tar.bz2 yuzu-5219edd7153d22d4c34150c13d050eca2831b563.tar.lz yuzu-5219edd7153d22d4c34150c13d050eca2831b563.tar.xz yuzu-5219edd7153d22d4c34150c13d050eca2831b563.tar.zst yuzu-5219edd7153d22d4c34150c13d050eca2831b563.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 0e3873ffd..2eb6a03eb 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -5,8 +5,10 @@ #pragma once #include <array> +#include <bitset> #include <unordered_map> #include <vector> + #include "common/assert.h" #include "common/bit_field.h" #include "common/common_funcs.h" @@ -1094,19 +1096,18 @@ public: MemoryManager& memory_manager; struct DirtyFlags { - u8 color_buffer = 0xFF; - bool zeta_buffer = true; - - bool shaders = true; + std::bitset<8> color_buffer{0xFF}; + std::bitset<32> vertex_array{0xFFFFFFFF}; bool vertex_attrib_format = true; - u32 vertex_array = 0xFFFFFFFF; + bool zeta_buffer = true; + bool shaders = true; void OnMemoryWrite() { - color_buffer = 0xFF; zeta_buffer = true; shaders = true; - vertex_array = 0xFFFFFFFF; + color_buffer.set(); + vertex_array.set(); } }; |