D3D12: Additions to VideoCommon to support D3D12 backend.

This commit is contained in:
hdcmeta
2016-01-07 19:38:00 -08:00
parent 98f74d3479
commit a2e2e36745
4 changed files with 16 additions and 4 deletions

View File

@ -138,7 +138,7 @@ public:
static TCacheEntryBase* Load(const u32 stage);
static void UnbindTextures();
static void BindTextures();
virtual void BindTextures();
static void CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat, u32 dstStride,
PEControl::PixelFormat srcFormat, const EFBRectangle& srcRect, bool isIntensity, bool scaleByHalf);
@ -150,6 +150,8 @@ protected:
alignas(16) static u8* temp;
static size_t temp_size;
static TCacheEntryBase* bound_textures[8];
private:
typedef std::multimap<u64, TCacheEntryBase*> TexCache;
typedef std::unordered_multimap<TCacheEntryConfig, TCacheEntryBase*, TCacheEntryConfig::Hasher> TexPool;
@ -165,7 +167,6 @@ private:
static TexCache textures_by_address;
static TexCache textures_by_hash;
static TexPool texture_pool;
static TCacheEntryBase* bound_textures[8];
// Backup configuration values
static struct BackupConfig