diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2022-08-11 18:07:37 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-11 18:07:37 -0300 |
| commit | a5ff0024fb33964c802e1712e5b11a52390603e7 (patch) | |
| tree | fdc0b7781541215cd728b8e0288b729f73dbad88 /Ryujinx.Graphics.GAL | |
| parent | f9661a54d21c3020783d14fd9935bb7b741a6915 (diff) | |
Rename ToSpan to AsSpan (#3556)
Diffstat (limited to 'Ryujinx.Graphics.GAL')
| -rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/Commands/SetPatchParametersCommand.cs | 6 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/ProgramPipelineState.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/SupportBufferUpdater.cs | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPatchParametersCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPatchParametersCommand.cs index 7847e8d0..d67cfc69 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPatchParametersCommand.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPatchParametersCommand.cs @@ -13,13 +13,13 @@ namespace Ryujinx.Graphics.GAL.Multithreading.Commands public void Set(int vertices, ReadOnlySpan<float> defaultOuterLevel, ReadOnlySpan<float> defaultInnerLevel) { _vertices = vertices; - defaultOuterLevel.CopyTo(_defaultOuterLevel.ToSpan()); - defaultInnerLevel.CopyTo(_defaultInnerLevel.ToSpan()); + defaultOuterLevel.CopyTo(_defaultOuterLevel.AsSpan()); + defaultInnerLevel.CopyTo(_defaultInnerLevel.AsSpan()); } public static void Run(ref SetPatchParametersCommand command, ThreadedRenderer threaded, IRenderer renderer) { - renderer.Pipeline.SetPatchParameters(command._vertices, command._defaultOuterLevel.ToSpan(), command._defaultInnerLevel.ToSpan()); + renderer.Pipeline.SetPatchParameters(command._vertices, command._defaultOuterLevel.AsSpan(), command._defaultInnerLevel.AsSpan()); } } } diff --git a/Ryujinx.Graphics.GAL/ProgramPipelineState.cs b/Ryujinx.Graphics.GAL/ProgramPipelineState.cs index 10a4164e..88728207 100644 --- a/Ryujinx.Graphics.GAL/ProgramPipelineState.cs +++ b/Ryujinx.Graphics.GAL/ProgramPipelineState.cs @@ -66,7 +66,7 @@ namespace Ryujinx.Graphics.GAL public void SetVertexAttribs(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs) { VertexAttribCount = vertexAttribs.Length; - vertexAttribs.CopyTo(VertexAttribs.ToSpan()); + vertexAttribs.CopyTo(VertexAttribs.AsSpan()); } public void SetLogicOpState(bool enable, LogicalOp op) diff --git a/Ryujinx.Graphics.GAL/SupportBufferUpdater.cs b/Ryujinx.Graphics.GAL/SupportBufferUpdater.cs index 5d73b45a..6eeddb6c 100644 --- a/Ryujinx.Graphics.GAL/SupportBufferUpdater.cs +++ b/Ryujinx.Graphics.GAL/SupportBufferUpdater.cs @@ -65,12 +65,12 @@ namespace Ryujinx.Graphics.GAL public void UpdateRenderScale(ReadOnlySpan<Vector4<float>> data, int offset, int count) { - UpdateGenericField(SupportBuffer.GraphicsRenderScaleOffset, data, Data.RenderScale.ToSpan(), offset, count); + UpdateGenericField(SupportBuffer.GraphicsRenderScaleOffset, data, Data.RenderScale.AsSpan(), offset, count); } public void UpdateFragmentIsBgra(ReadOnlySpan<Vector4<int>> data, int offset, int count) { - UpdateGenericField(SupportBuffer.FragmentIsBgraOffset, data, Data.FragmentIsBgra.ToSpan(), offset, count); + UpdateGenericField(SupportBuffer.FragmentIsBgraOffset, data, Data.FragmentIsBgra.AsSpan(), offset, count); } public void UpdateViewportInverse(Vector4<float> data) |
