aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-01-12 20:27:50 -0300
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2020-01-13 10:27:50 +1100
commitb8e3909d800ff5947683bb169d8efda2ef63d697 (patch)
tree653a2e60b42cb45fbeb1ad76aa6b827bc1e38966 /Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs
parent8b90924c1ebf7e65d1f170df5dd1ac6c2596926f (diff)
Add a GetSpan method to the memory manager and use it on GPU (#877)
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs b/Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs
index 0c56132d..42701fbd 100644
--- a/Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs
+++ b/Ryujinx.Graphics.Shader/Translation/ShaderHeader.cs
@@ -76,9 +76,9 @@ namespace Ryujinx.Graphics.Shader.Translation
public bool OmapSampleMask { get; }
public bool OmapDepth { get; }
- public ShaderHeader(Span<byte> code)
+ public ShaderHeader(ReadOnlySpan<byte> code)
{
- Span<int> header = MemoryMarshal.Cast<byte, int>(code);
+ ReadOnlySpan<int> header = MemoryMarshal.Cast<byte, int>(code);
int commonWord0 = header[0];
int commonWord1 = header[1];