mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 18:18:49 +00:00
D3D: Make StateCache thread safe
This commit is contained in:
parent
bfb4709c80
commit
40845e6b8f
2 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <array>
|
||||
#include <cstddef>
|
||||
#include <mutex>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "Common/BitField.h"
|
||||
|
@ -35,6 +36,7 @@ private:
|
|||
std::unordered_map<u32, ID3D11RasterizerState*> m_raster;
|
||||
std::unordered_map<u32, ID3D11BlendState*> m_blend;
|
||||
std::unordered_map<SamplerState::StorageType, ID3D11SamplerState*> m_sampler;
|
||||
std::mutex m_lock;
|
||||
};
|
||||
|
||||
namespace D3D
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue