From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 8 Apr 2023 01:22:00 +0200 Subject: Move solution and projects to src --- .../Shader/TransformFeedbackDescriptor.cs | 58 ---------------------- 1 file changed, 58 deletions(-) delete mode 100644 Ryujinx.Graphics.Gpu/Shader/TransformFeedbackDescriptor.cs (limited to 'Ryujinx.Graphics.Gpu/Shader/TransformFeedbackDescriptor.cs') diff --git a/Ryujinx.Graphics.Gpu/Shader/TransformFeedbackDescriptor.cs b/Ryujinx.Graphics.Gpu/Shader/TransformFeedbackDescriptor.cs deleted file mode 100644 index 5baf2a1a..00000000 --- a/Ryujinx.Graphics.Gpu/Shader/TransformFeedbackDescriptor.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Ryujinx.Common.Memory; -using System; -using System.Runtime.InteropServices; - -namespace Ryujinx.Graphics.Gpu.Shader -{ - /// - /// Transform feedback descriptor. - /// - struct TransformFeedbackDescriptor - { - // New fields should be added to the end of the struct to keep disk shader cache compatibility. - - /// - /// Index of the transform feedback. - /// - public readonly int BufferIndex; - - /// - /// Amount of bytes consumed per vertex. - /// - public readonly int Stride; - - /// - /// Number of varyings written into the buffer. - /// - public readonly int VaryingCount; - - /// - /// Location of varyings to be written into the buffer. Each byte is one location. - /// - public Array32 VaryingLocations; // Making this readonly breaks AsSpan - - /// - /// Creates a new transform feedback descriptor. - /// - /// Index of the transform feedback - /// Amount of bytes consumed per vertex - /// Number of varyings written into the buffer. Indicates size in bytes of - /// Location of varyings to be written into the buffer. Each byte is one location - public TransformFeedbackDescriptor(int bufferIndex, int stride, int varyingCount, ref Array32 varyingLocations) - { - BufferIndex = bufferIndex; - Stride = stride; - VaryingCount = varyingCount; - VaryingLocations = varyingLocations; - } - - /// - /// Gets a span of the . - /// - /// Span of varying locations - public ReadOnlySpan AsSpan() - { - return MemoryMarshal.Cast(VaryingLocations.AsSpan()).Slice(0, Math.Min(128, VaryingCount)); - } - } -} -- cgit v1.2.3