Switch methods to block bodies

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 16c0fc9aab
コミット b2afb88f30
53ファイル変更
+426 -132

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

+2
ファイルの表示
@@ -1,5 +1,7 @@
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp.D2D1;
/// <summary>
+2
ファイルの表示
@@ -1,5 +1,7 @@
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp.D2D1;
/// <summary>
+2
ファイルの表示
@@ -1,5 +1,7 @@
using ComputeSharp.Exceptions;
#pragma warning disable IDE0022
namespace ComputeSharp.D2D1;
/// <summary>
+4 -10
ファイルの表示
@@ -43,14 +43,11 @@ unsafe partial struct PixelShaderEffect
#endif
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
#if NET6_0_OR_GREATER
return &GetConstantBufferImpl;
get => &GetConstantBufferImpl;
#else
return (void*)Marshal.GetFunctionPointerForDelegate(GetConstantBufferWrapper);
get => (void*)Marshal.GetFunctionPointerForDelegate(GetConstantBufferWrapper);
#endif
}
}
/// <summary>
@@ -63,14 +60,11 @@ unsafe partial struct PixelShaderEffect
#endif
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
#if NET6_0_OR_GREATER
return &SetConstantBufferImpl;
get => &SetConstantBufferImpl;
#else
return (void*)Marshal.GetFunctionPointerForDelegate(SetConstantBufferWrapper);
get => (void*)Marshal.GetFunctionPointerForDelegate(SetConstantBufferWrapper);
#endif
}
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>