misc: chore: Use collection expressions in Vulkan project
This commit is contained in:
@@ -9,7 +9,8 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
{
|
||||
class FormatCapabilities
|
||||
{
|
||||
private static readonly GAL.Format[] _scaledFormats = {
|
||||
private static readonly GAL.Format[] _scaledFormats =
|
||||
[
|
||||
GAL.Format.R8Uscaled,
|
||||
GAL.Format.R8Sscaled,
|
||||
GAL.Format.R16Uscaled,
|
||||
@@ -27,10 +28,11 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
GAL.Format.R16G16B16A16Uscaled,
|
||||
GAL.Format.R16G16B16A16Sscaled,
|
||||
GAL.Format.R10G10B10A2Uscaled,
|
||||
GAL.Format.R10G10B10A2Sscaled,
|
||||
};
|
||||
GAL.Format.R10G10B10A2Sscaled
|
||||
];
|
||||
|
||||
private static readonly GAL.Format[] _intFormats = {
|
||||
private static readonly GAL.Format[] _intFormats =
|
||||
[
|
||||
GAL.Format.R8Uint,
|
||||
GAL.Format.R8Sint,
|
||||
GAL.Format.R16Uint,
|
||||
@@ -48,8 +50,8 @@ namespace Ryujinx.Graphics.Vulkan
|
||||
GAL.Format.R16G16B16A16Uint,
|
||||
GAL.Format.R16G16B16A16Sint,
|
||||
GAL.Format.R10G10B10A2Uint,
|
||||
GAL.Format.R10G10B10A2Sint,
|
||||
};
|
||||
GAL.Format.R10G10B10A2Sint
|
||||
];
|
||||
|
||||
private readonly FormatFeatureFlags[] _bufferTable;
|
||||
private readonly FormatFeatureFlags[] _optimalTable;
|
||||
|
||||
Reference in New Issue
Block a user