Format ComputeSharp.Core project

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 1c26d37bc3
コミット 38adbe6087
11ファイル変更
+31 -6

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

@@ -11,14 +11,20 @@ public sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
/// </summary>
/// <param name="argument">The name of the argument that should be passed to the handler.</param>
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
public InterpolatedStringHandlerArgumentAttribute(string argument) => Arguments = new string[] { argument };
public InterpolatedStringHandlerArgumentAttribute(string argument)
{
Arguments = new string[] { argument };
}
/// <summary>
/// Initializes a new instance of the <see cref="InterpolatedStringHandlerArgumentAttribute"/> class.
/// </summary>
/// <param name="arguments">The names of the arguments that should be passed to the handler.</param>
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments) => Arguments = arguments;
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
{
Arguments = arguments;
}
/// <summary>
/// Gets the names of the arguments that should be passed to the handler.
+4 -1
ファイルの表示
@@ -14,5 +14,8 @@ internal static class RuntimeHelpers
/// <param name="type">The type to associate the memory to.</param>
/// <param name="size">The size in byte of the memory to allocate.</param>
/// <returns>A pointer to the allocated memory.</returns>
public static IntPtr AllocateTypeAssociatedMemory(Type type, int size) => Marshal.AllocHGlobal(size);
public static IntPtr AllocateTypeAssociatedMemory(Type type, int size)
{
return Marshal.AllocHGlobal(size);
}
}
+4
ファイルの表示
@@ -134,6 +134,7 @@ internal ref struct FormatInterpolatedStringHandler
{
GrowThenCopyString(value);
}
return;
}
@@ -158,6 +159,7 @@ internal ref struct FormatInterpolatedStringHandler
{
GrowThenCopyString(value);
}
return;
}
@@ -278,6 +280,7 @@ internal ref struct FormatInterpolatedStringHandler
GrowCore((uint)position + (uint)additionalChars);
}
#if NET6_0_OR_GREATER
/// <summary>
/// Grows the size of <see cref="characters"/>.
/// </summary>
@@ -286,6 +289,7 @@ internal ref struct FormatInterpolatedStringHandler
{
GrowCore((uint)characters.Length + 1);
}
#endif
/// <summary>
/// Grow the size of <see cref="characters"/> to at least the specified <paramref name="requiredMinCapacity"/>.
+1 -3
ファイルの表示
@@ -183,9 +183,7 @@ internal ref struct TryWriteFormatInterpolatedStringHandler
}
#if NET6_0_OR_GREATER
int charsWritten;
if (value.TryFormat(destination.Slice(position), out charsWritten, format, formatProvider))
if (value.TryFormat(destination.Slice(position), out int charsWritten, format, formatProvider))
{
position += charsWritten;
+2
ファイルの表示
@@ -1,5 +1,7 @@
using ComputeSharp.Core.Intrinsics.Attributes;
#pragma warning disable IDE0022
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
+2
ファイルの表示
@@ -4,6 +4,8 @@
<#@ output extension=".g.cs"#>
using ComputeSharp.Core.Intrinsics.Attributes;
#pragma warning disable IDE0022
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
+2
ファイルの表示
@@ -1,6 +1,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
+2
ファイルの表示
@@ -2,6 +2,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
+2
ファイルの表示
@@ -1,6 +1,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp;
/// <summary>
+2
ファイルの表示
@@ -1,6 +1,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>
+2
ファイルの表示
@@ -2,6 +2,8 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp;
/// <inheritdoc cref="Hlsl"/>