diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs index 13efcd45..b0872f51 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the bool2 HLSL type /// + [DebuggerDisplay("({X}, {Y})")] [StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 2)] public struct Bool2 { diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs index 37f98b52..aaa36147 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the bool3 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z})")] [StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 3)] public struct Bool3 { diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs index 64748bff..557868ca 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the bool4 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z}, {W})")] [StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 4)] public struct Bool4 { diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.cs b/src/ComputeSharp.Core/Primitives/Double/Double2.cs index 8d8d6ff0..0c377e4b 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double2.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double2.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the double2 HLSL type /// + [DebuggerDisplay("({X}, {Y})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 2)] public struct Double2 { diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.cs index 7c155187..3a56db61 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double3.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double3.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the double3 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 3)] public struct Double3 { diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.cs index b2d3209e..2a3e57c6 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double4.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double4.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the double4 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z}, {W})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 4)] public struct Double4 { diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.cs index 35dcfd93..a45fcf41 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the float2 HLSL type /// + [DebuggerDisplay("({X}, {Y})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 2)] public struct Float2 { diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.cs index da7962fe..568f4eda 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the float3 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 3)] public struct Float3 { diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.cs index 963071c7..c8727ffb 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the float4 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z}, {W})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 4)] public struct Float4 { diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.cs index a892fdcc..06252c89 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the int2 HLSL type /// + [DebuggerDisplay("({X}, {Y})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 2)] public struct Int2 { diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.cs index 0af3b759..f0b8f57b 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the int3 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 3)] public struct Int3 { diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.cs index 0242dd6c..71cc010f 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the int4 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z}, {W})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 4)] public struct Int4 { diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs index 4c3b14a7..5be415d9 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the uint2 HLSL type /// + [DebuggerDisplay("({X}, {Y})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 2)] public struct UInt2 { diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs index d71c81ac..4917a475 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the uint3 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 3)] public struct UInt3 { diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs index 3648e543..a3d8c623 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.InteropServices; using ComputeSharp.Exceptions; namespace ComputeSharp @@ -6,6 +7,7 @@ namespace ComputeSharp /// /// A that maps the uuint4 HLSL type /// + [DebuggerDisplay("({X}, {Y}, {Z}, {W})")] [StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 4)] public struct UInt4 {