aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-12-04 15:07:11 -0300
committerGitHub <noreply@github.com>2022-12-04 15:07:11 -0300
commit73aed239c356c4c573819eb6ee1e2d414d2d5579 (patch)
treea62251a52f79673925161a9843339df81483fbfb /Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs
parent9ac66336a216644a1b671e7949702d2e749838d2 (diff)
Implement non-MS to MS copies with draws (#3958)1.1.420
* Implement non-MS to MS copies with draws, simplify MS to non-MS copies and supports any host sample count * Remove unused program
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs')
-rw-r--r--Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs b/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs
index b2ee145d..b31b72a1 100644
--- a/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs
+++ b/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs
@@ -11,14 +11,19 @@ namespace Ryujinx.Graphics.Vulkan
public void SetRenderTarget(Auto<DisposableImageView> view, uint width, uint height, bool isDepthStencil, VkFormat format)
{
- CreateFramebuffer(view, width, height, isDepthStencil, format);
+ SetRenderTarget(view, width, height, 1u, isDepthStencil, format);
+ }
+
+ public void SetRenderTarget(Auto<DisposableImageView> view, uint width, uint height, uint samples, bool isDepthStencil, VkFormat format)
+ {
+ CreateFramebuffer(view, width, height, samples, isDepthStencil, format);
CreateRenderPass();
SignalStateChange();
}
- private void CreateFramebuffer(Auto<DisposableImageView> view, uint width, uint height, bool isDepthStencil, VkFormat format)
+ private void CreateFramebuffer(Auto<DisposableImageView> view, uint width, uint height, uint samples, bool isDepthStencil, VkFormat format)
{
- FramebufferParams = new FramebufferParams(Device, view, width, height, isDepthStencil, format);
+ FramebufferParams = new FramebufferParams(Device, view, width, height, samples, isDepthStencil, format);
UpdatePipelineAttachmentFormats();
}