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/D3D/Render.cpp | |
| parent | a584ccc7d882213d93586cae9063d9865311aaad (diff) | |
VideoBackends: Add AbstractStagingTexture class
Can be used for asynchronous readback or upload of textures.
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/Render.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 0bddc4cd40..a7518cdf64 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -216,6 +216,12 @@ std::unique_ptr<AbstractTexture> Renderer::CreateTexture(const TextureConfig& co return std::make_unique<DXTexture>(config); } +std::unique_ptr<AbstractStagingTexture> Renderer::CreateStagingTexture(StagingTextureType type, + const TextureConfig& config) +{ + return DXStagingTexture::Create(type, config); +} + void Renderer::RenderText(const std::string& text, int left, int top, u32 color) { D3D::DrawTextScaled(static_cast<float>(left + 1), static_cast<float>(top + 1), 20.f, 0.0f, |
