Basic shader cache.

This commit is contained in:
Ben Vanik
2013-10-11 21:45:20 -07:00
parent 6e4fb87992
commit 1378fad3c0
20 changed files with 981 additions and 40 deletions

View File

@@ -14,6 +14,8 @@
#include <xenia/gpu/shader_cache.h>
#include <D3D11.h>
namespace xe {
namespace gpu {
@@ -22,8 +24,17 @@ namespace d3d11 {
class D3D11ShaderCache : public ShaderCache {
public:
D3D11ShaderCache();
D3D11ShaderCache(ID3D11Device* device);
virtual ~D3D11ShaderCache();
protected:
virtual Shader* CreateCore(
xenos::XE_GPU_SHADER_TYPE type,
const uint8_t* src_ptr, size_t length,
uint32_t hash);
protected:
ID3D11Device* device_;
};