Lets do the rest actually

This commit is contained in:
sunshineinabox 2023-08-14 10:53:43 -07:00
parent 62f629d971
commit 9f7d839664
3 changed files with 5 additions and 0 deletions

View file

@ -42,6 +42,7 @@ namespace Ryujinx.Graphics.GAL
public readonly bool SupportsViewportIndexVertexTessellation;
public readonly bool SupportsViewportMask;
public readonly bool SupportsViewportSwizzle;
public readonly bool SupportsSpirV;
public readonly bool SupportsIndirectParameters;
public readonly bool SupportsDepthClipControl;
@ -93,6 +94,7 @@ namespace Ryujinx.Graphics.GAL
bool supportsViewportIndexVertexTessellation,
bool supportsViewportMask,
bool supportsViewportSwizzle,
bool supportsSpirV,
bool supportsIndirectParameters,
bool supportsDepthClipControl,
uint maximumUniformBuffersPerStage,
@ -140,6 +142,7 @@ namespace Ryujinx.Graphics.GAL
SupportsViewportIndexVertexTessellation = supportsViewportIndexVertexTessellation;
SupportsViewportMask = supportsViewportMask;
SupportsViewportSwizzle = supportsViewportSwizzle;
SupportsSpirV = supportsSpirV;
SupportsIndirectParameters = supportsIndirectParameters;
SupportsDepthClipControl = supportsDepthClipControl;
MaximumUniformBuffersPerStage = maximumUniformBuffersPerStage;

View file

@ -167,6 +167,7 @@ namespace Ryujinx.Graphics.OpenGL
supportsViewportIndexVertexTessellation: HwCapabilities.SupportsShaderViewportLayerArray,
supportsViewportMask: HwCapabilities.SupportsViewportArray2,
supportsViewportSwizzle: HwCapabilities.SupportsViewportSwizzle,
supportsSpirV: HwCapabilities.SupportsSpirV,
supportsIndirectParameters: HwCapabilities.SupportsIndirectParameters,
supportsDepthClipControl: true,
maximumUniformBuffersPerStage: 13, // TODO: Avoid hardcoding those limits here and get from driver?

View file

@ -615,6 +615,7 @@ namespace Ryujinx.Graphics.Vulkan
supportsViewportIndexVertexTessellation: featuresVk12.ShaderOutputViewportIndex,
supportsViewportMask: Capabilities.SupportsViewportArray2,
supportsViewportSwizzle: false,
supportsSpirV: true,
supportsIndirectParameters: true,
supportsDepthClipControl: Capabilities.SupportsDepthClipControl,
maximumUniformBuffersPerStage: Constants.MaxUniformBuffersPerStage,