diff options
| author | Stenzek <stenzek@gmail.com> | 2017-10-22 00:49:40 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-11-22 18:47:04 +1000 |
| commit | f43d85921dc85ae586d69b21d28a7578835a55bd (patch) | |
| tree | da734d7c52a1cbaeae276c601b99dd426fcf3d43 /Source/Core/VideoBackends/Software/SWRenderer.cpp | |
| parent | a584ccc7d882213d93586cae9063d9865311aaad (diff) | |
VideoBackends: Add AbstractStagingTexture class
Can be used for asynchronous readback or upload of textures.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWRenderer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWRenderer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/SWRenderer.cpp b/Source/Core/VideoBackends/Software/SWRenderer.cpp index ea7ccaba7c..ee4b644ca7 100644 --- a/Source/Core/VideoBackends/Software/SWRenderer.cpp +++ b/Source/Core/VideoBackends/Software/SWRenderer.cpp @@ -40,6 +40,12 @@ std::unique_ptr<AbstractTexture> SWRenderer::CreateTexture(const TextureConfig& return std::make_unique<SW::SWTexture>(config); } +std::unique_ptr<AbstractStagingTexture> +SWRenderer::CreateStagingTexture(StagingTextureType type, const TextureConfig& config) +{ + return std::make_unique<SW::SWStagingTexture>(type, config); +} + void SWRenderer::RenderText(const std::string& pstr, int left, int top, u32 color) { SWOGLWindow::s_instance->PrintText(pstr, left, top, color); |
