Added DebuggerDisplay attribute to vector types

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-29 03:21:02 +02:00
1 親 e7b5410d03
コミット 8c0269be6f
15ファイル変更
+45 -15

検索条件に一致するファイルはありません

+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the bool2 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 2)]
public struct Bool2
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the bool3 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 3)]
public struct Bool3
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the bool4 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 4)]
public struct Bool4
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the double2 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 2)]
public struct Double2
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the double3 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 3)]
public struct Double3
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the double4 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 4)]
public struct Double4
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the float2 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 2)]
public struct Float2
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the float3 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 3)]
public struct Float3
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the float4 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 4)]
public struct Float4
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the int2 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 2)]
public struct Int2
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the int3 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 3)]
public struct Int3
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the int4 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 4)]
public struct Int4
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the uint2 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 2)]
public struct UInt2
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the uint3 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 3)]
public struct UInt3
{
+3 -1
ファイルの表示
@@ -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
/// <summary>
/// A <see langword="struct"/> that maps the uuint4 HLSL type
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 4)]
public struct UInt4
{