From dddee59bd9ce7e18de87af1d35e160dbadaf2687 Mon Sep 17 00:00:00 2001 From: ParantezTech <12572227+par274@users.noreply.github.com> Date: Mon, 5 Oct 2026 18:38:07 +0300 Subject: [PATCH] [Vulkan] Track shader clip distance support --- src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Device.Setup.cs | 1 + src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Rendering.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Device.Setup.cs b/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Device.Setup.cs index 4d7960d..7f5333f 100644 --- a/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Device.Setup.cs +++ b/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Device.Setup.cs @@ -742,6 +742,7 @@ internal static unsafe partial class VulkanVideoPresenter _supportsIndependentBlend = supportedFeatures.IndependentBlend; _supportsDepthBiasClamp = supportedFeatures.DepthBiasClamp; _supportsDepthBounds = supportedFeatures.DepthBounds; + _supportsShaderClipDistance = supportedFeatures.ShaderClipDistance; _supportsFillRectangle = IsDeviceExtensionAvailable(FillRectangleExtensionName); var enabledFeatures = new PhysicalDeviceFeatures { diff --git a/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Rendering.cs b/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Rendering.cs index bde967f..52a3845 100644 --- a/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Rendering.cs +++ b/src/SharpEmu.Libs/VideoOut/VulkanVideoPresenter.Rendering.cs @@ -126,6 +126,7 @@ internal static unsafe partial class VulkanVideoPresenter private bool _supportsDepthClipControl; private bool _supportsDepthClipEnable; private bool _supportsDepthBounds; + private bool _supportsShaderClipDistance; private bool _supportsFillRectangle; private RenderHostLimits _renderHostLimits; private IGuestBackedSpace _guestBacking = null!;