1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-14 18:23:52 +01:00
dxvk/src/d3d9/d3d9_swvp_emu.h

36 lines
686 B
C
Raw Normal View History

#pragma once
#include "d3d9_include.h"
#include "../dxvk/dxvk_shader.h"
namespace dxvk {
class D3D9VertexDecl;
class D3D9DeviceEx;
struct D3D9VertexDeclHash {
size_t operator () (const D3D9VertexElements& key) const;
};
struct D3D9VertexDeclEq {
bool operator () (const D3D9VertexElements& a, const D3D9VertexElements& b) const;
};
class D3D9SWVPEmulator {
public:
Rc<DxvkShader> GetShaderModule(D3D9DeviceEx* pDevice, const D3D9VertexDecl* pDecl);
private:
std::mutex m_mutex;
std::unordered_map<
D3D9VertexElements, Rc<DxvkShader>,
D3D9VertexDeclHash, D3D9VertexDeclEq> m_modules;
};
}