aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader_environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/shader_environment.h')
-rw-r--r--src/video_core/shader_environment.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h
index c5bd0e7339..183b6b903b 100644
--- a/src/video_core/shader_environment.h
+++ b/src/video_core/shader_environment.h
@@ -14,7 +14,7 @@
#include <optional>
#include <span>
#include <type_traits>
-#include <unordered_map>
+#include <ankerl/unordered_dense.h>
#include <vector>
#include "common/common_types.h"
@@ -79,10 +79,10 @@ protected:
GPUVAddr program_base{};
std::vector<u64> code;
- std::unordered_map<u32, Shader::TextureType> texture_types;
- std::unordered_map<u32, Shader::TexturePixelFormat> texture_pixel_formats;
- std::unordered_map<u64, u32> cbuf_values;
- std::unordered_map<u64, Shader::ReplaceConstant> cbuf_replacements;
+ ankerl::unordered_dense::map<u32, Shader::TextureType> texture_types;
+ ankerl::unordered_dense::map<u32, Shader::TexturePixelFormat> texture_pixel_formats;
+ ankerl::unordered_dense::map<u64, u32> cbuf_values;
+ ankerl::unordered_dense::map<u64, Shader::ReplaceConstant> cbuf_replacements;
u32 local_memory_size{};
u32 texture_bound{};
@@ -201,10 +201,10 @@ public:
private:
std::vector<u64> code;
- std::unordered_map<u32, Shader::TextureType> texture_types;
- std::unordered_map<u32, Shader::TexturePixelFormat> texture_pixel_formats;
- std::unordered_map<u64, u32> cbuf_values;
- std::unordered_map<u64, Shader::ReplaceConstant> cbuf_replacements;
+ ankerl::unordered_dense::map<u32, Shader::TextureType> texture_types;
+ ankerl::unordered_dense::map<u32, Shader::TexturePixelFormat> texture_pixel_formats;
+ ankerl::unordered_dense::map<u64, u32> cbuf_values;
+ ankerl::unordered_dense::map<u64, Shader::ReplaceConstant> cbuf_replacements;
std::array<u32, 3> workgroup_size{};
u32 local_memory_size{};
u32 shared_memory_size{};