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
This commit is contained in:
parent
53cc9e0561
commit
88a0e720cb
14 changed files with 172 additions and 52 deletions
|
@ -730,6 +730,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public void SetVertexAttribs(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs)
|
||||
{
|
||||
var formatCapabilities = Gd.FormatCapabilities;
|
||||
|
||||
int count = Math.Min(Constants.MaxVertexAttributes, vertexAttribs.Length);
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
|
@ -740,7 +742,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
_newState.Internal.VertexAttributeDescriptions[i] = new VertexInputAttributeDescription(
|
||||
(uint)i,
|
||||
(uint)bufferIndex,
|
||||
FormatTable.GetFormat(attribute.Format),
|
||||
formatCapabilities.ConvertToVertexVkFormat(attribute.Format),
|
||||
(uint)attribute.Offset);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue