mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 21:56:24 +02:00
Allow skipping draws with broken pipeline variants on Vulkan (#5807)
* Allow skipping draws with broken pipeline variants on Vulkan * Move IsLinked check to CreatePipeline * Restore throw on error behaviour for background compile * Can't remove SetAlphaTest pragmas yet * Double new line
This commit is contained in:
parent
a620cbcc90
commit
b8d992e5a7
5 changed files with 110 additions and 57 deletions
|
@ -6,10 +6,16 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
static class ResultExtensions
|
||||
{
|
||||
public static bool IsError(this Result result)
|
||||
{
|
||||
// Only negative result codes are errors.
|
||||
return result < Result.Success;
|
||||
}
|
||||
|
||||
public static void ThrowOnError(this Result result)
|
||||
{
|
||||
// Only negative result codes are errors.
|
||||
if ((int)result < (int)Result.Success)
|
||||
if (result.IsError())
|
||||
{
|
||||
throw new VulkanException(result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue