mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-17 18:55:46 +00:00
@@ -98,7 +98,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
ImageCreateFlags flags = ImageCreateFlags.CreateMutableFormatBit | ImageCreateFlags.CreateExtendedUsageBit;
|
||||
|
||||
// This flag causes mipmapped texture arrays to break on AMD GCN, so for that copy dependencies are forced for aliasing as cube.
|
||||
bool isCube = info.Target == Target.Cubemap || info.Target == Target.CubemapArray;
|
||||
bool isCube = info.Target is Target.Cubemap or Target.CubemapArray;
|
||||
bool cubeCompatible = gd.IsAmdGcn ? isCube : (info.Width == info.Height && layers >= 6);
|
||||
|
||||
if (type == ImageType.Type2D && cubeCompatible)
|
||||
@@ -336,7 +336,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
|
||||
public static SampleCountFlags ConvertToSampleCountFlags(SampleCountFlags supportedSampleCounts, uint samples)
|
||||
{
|
||||
if (samples == 0 || samples > (uint)SampleCountFlags.Count64Bit)
|
||||
if (samples is 0 or > ((uint)SampleCountFlags.Count64Bit))
|
||||
{
|
||||
return SampleCountFlags.Count1Bit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user