From 88a0e720cbe567aff67b6124aa9e6cfc17599739 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 20 Aug 2022 16:20:27 -0300 Subject: Use RGBA16 vertex format if RGB16 is not supported on Vulkan (#3552) * Use RGBA16 vertex format if RGB16 is not supported on Vulkan * Catch all shader compilation exceptions --- Ryujinx.Graphics.Shader/Translation/AttributeInfo.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Ryujinx.Graphics.Shader/Translation') diff --git a/Ryujinx.Graphics.Shader/Translation/AttributeInfo.cs b/Ryujinx.Graphics.Shader/Translation/AttributeInfo.cs index 9af5bacf..2a97ee52 100644 --- a/Ryujinx.Graphics.Shader/Translation/AttributeInfo.cs +++ b/Ryujinx.Graphics.Shader/Translation/AttributeInfo.cs @@ -93,12 +93,7 @@ namespace Ryujinx.Graphics.Shader.Translation if (config.Stage == ShaderStage.Vertex && !isOutAttr) { - elemType = config.GpuAccessor.QueryAttributeType(location) switch - { - AttributeType.Sint => AggregateType.S32, - AttributeType.Uint => AggregateType.U32, - _ => AggregateType.FP32 - }; + elemType = config.GpuAccessor.QueryAttributeType(location).ToAggregateType(); } else { -- cgit v1.2.3