aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-08-20 16:20:27 -0300
committerGitHub <noreply@github.com>2022-08-20 16:20:27 -0300
commit88a0e720cbe567aff67b6124aa9e6cfc17599739 (patch)
tree8ba359b84ae70da47eb17792369760f8f0db94de /Ryujinx.Graphics.Shader/Translation
parent53cc9e0561bcbe7779b12c9e03d93078da2bb2c7 (diff)
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
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation')
-rw-r--r--Ryujinx.Graphics.Shader/Translation/AttributeInfo.cs7
1 files changed, 1 insertions, 6 deletions
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
{