mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 09:21:15 +01:00
misc: chore: Use collection expressions
This commit is contained in:
1 parent
4d5757417e
commit
e2973a875a
236 files changed
+9843
-7561
No files matched your search
@@ -35,8 +35,8 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
private bool _stencilTestEnable;
|
||||
private bool _cullEnable;
|
||||
|
||||
private float[] _viewportArray = Array.Empty<float>();
|
||||
private double[] _depthRangeArray = Array.Empty<double>();
|
||||
private float[] _viewportArray = [];
|
||||
private double[] _depthRangeArray = [];
|
||||
|
||||
private int _boundDrawFramebuffer;
|
||||
private int _boundReadFramebuffer;
|
||||
@@ -111,7 +111,7 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
(componentMask & 4) != 0,
|
||||
(componentMask & 8) != 0);
|
||||
|
||||
float[] colors = new float[] { color.Red, color.Green, color.Blue, color.Alpha };
|
||||
float[] colors = [color.Red, color.Green, color.Blue, color.Alpha];
|
||||
|
||||
if (layer != 0 || layerCount != _framebuffer.GetColorLayerCount(index))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user