From a5ff0024fb33964c802e1712e5b11a52390603e7 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 11 Aug 2022 18:07:37 -0300 Subject: Rename ToSpan to AsSpan (#3556) --- Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs | 4 ++-- Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.Gpu/Engine') diff --git a/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs b/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs index a3295616..44cd8213 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs @@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.Gpu.Engine #pragma warning disable CS0169 private uint _e0; #pragma warning restore CS0169 - public ref uint this[int index] => ref ToSpan()[index]; - public Span ToSpan() => MemoryMarshal.CreateSpan(ref _e0, 256); + public ref uint this[int index] => ref AsSpan()[index]; + public Span AsSpan() => MemoryMarshal.CreateSpan(ref _e0, 256); } } diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs index ccbccca1..10d5cd8c 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs @@ -331,8 +331,8 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed _context.Renderer.Pipeline.SetPatchParameters( _state.State.PatchVertices, - _state.State.TessOuterLevel.ToSpan(), - _state.State.TessInnerLevel.ToSpan()); + _state.State.TessOuterLevel.AsSpan(), + _state.State.TessInnerLevel.AsSpan()); } /// -- cgit v1.2.3