diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs')
| -rw-r--r-- | Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs b/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs deleted file mode 100644 index b31b72a1..00000000 --- a/Ryujinx.Graphics.Vulkan/PipelineHelperShader.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Silk.NET.Vulkan; -using VkFormat = Silk.NET.Vulkan.Format; - -namespace Ryujinx.Graphics.Vulkan -{ - class PipelineHelperShader : PipelineBase - { - public PipelineHelperShader(VulkanRenderer gd, Device device) : base(gd, device) - { - } - - public void SetRenderTarget(Auto<DisposableImageView> view, uint width, uint height, bool isDepthStencil, VkFormat 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, uint samples, bool isDepthStencil, VkFormat format) - { - FramebufferParams = new FramebufferParams(Device, view, width, height, samples, isDepthStencil, format); - UpdatePipelineAttachmentFormats(); - } - - public void SetCommandBuffer(CommandBufferScoped cbs) - { - CommandBuffer = (Cbs = cbs).CommandBuffer; - - // Restore per-command buffer state. - - if (Pipeline != null) - { - Gd.Api.CmdBindPipeline(CommandBuffer, Pbp, Pipeline.Get(CurrentCommandBuffer).Value); - } - - SignalCommandBufferChange(); - } - - public void Finish() - { - EndRenderPass(); - } - - public void Finish(VulkanRenderer gd, CommandBufferScoped cbs) - { - Finish(); - - if (gd.PipelineInternal.IsCommandBufferActive(cbs.CommandBuffer)) - { - gd.PipelineInternal.Restore(); - } - } - } -} |
