From 611bec6e44effa90554c95ed1fe4dd4812893947 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 10 Nov 2021 15:37:49 -0300 Subject: Implement DrawTexture functionality (#2747) * Implement DrawTexture functionality * Non-NVIDIA support * Disable some features that should not affect draw texture (slow path) * Remove space from shader source * Match 2D engine names * Fix resolution scale and add missing XML docs * Disable transform feedback for draw texture fallback --- Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs') diff --git a/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs b/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs index 3c39a77f..63a29b1b 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs @@ -83,6 +83,12 @@ namespace Ryujinx.Graphics.GAL.Multithreading _renderer.QueueCommand(); } + public void DrawTexture(ITexture texture, ISampler sampler, Extents2DF srcRegion, Extents2DF dstRegion) + { + _renderer.New().Set(Ref(texture), Ref(sampler), srcRegion, dstRegion); + _renderer.QueueCommand(); + } + public void EndHostConditionalRendering() { _renderer.New(); -- cgit v1.2.3