VideoCommon: Move abstract texture creation function to Renderer

This commit is contained in:
Stenzek
2017-09-30 16:25:36 +10:00
parent 5860c97144
commit 49a9c33bd7
24 changed files with 49 additions and 36 deletions

View File

@ -35,6 +35,7 @@
class AbstractRawTexture;
class AbstractTexture;
class PostProcessingShaderImplementation;
struct TextureConfig;
enum class EFBAccessType;
struct EfbPokeData
@ -79,6 +80,8 @@ public:
virtual void RestoreState() {}
virtual void ResetAPIState() {}
virtual void RestoreAPIState() {}
virtual std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config) = 0;
// Ideal internal resolution - multiple of the native EFB resolution
int GetTargetWidth() const { return m_target_width; }
int GetTargetHeight() const { return m_target_height; }