Remove unnecessary [Pure] attributes

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-19 17:55:06 +01:00
1 親 30fea918cf
コミット 4d51d8d05b
53ファイル変更
+70 -2093

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

-2
ファイルの表示
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Reflection;
using ComputeSharp.Core.Extensions;
@@ -71,7 +70,6 @@ public sealed partial class ShaderMethodSourceAttribute : Attribute
/// <param name="function">The input <see cref="Delegate"/> instance to get info for.</param>
/// <param name="name">The name of the shader field containing <paramref name="function"/>.</param>
/// <returns>The associated <see cref="ShaderMethodSourceAttribute"/> instance for the given delegate.</returns>
[Pure]
public static ShaderMethodSourceAttribute GetForDelegate(Delegate function, string name)
{
if (!function.Method.IsStatic)
-2
ファイルの表示
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics.Contracts;
using System.Text;
namespace ComputeSharp.Exceptions;
@@ -23,7 +22,6 @@ public sealed class HlslCompilationException : Exception
/// </summary>
/// <param name="error">The input compilatin error message from the DXC compiler.</param>
/// <returns>A formatted error message for a new <see cref="HlslCompilationException"/> instance.</returns>
[Pure]
private static string GetExceptionMessage(string error)
{
StringBuilder builder = new(512);
-2
ファイルの表示
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using ComputeSharp.Core.Extensions;
using ComputeSharp.Exceptions;
@@ -84,7 +83,6 @@ internal sealed unsafe partial class ShaderCompiler
/// </summary>
/// <param name="source">The HLSL source code to compile.</param>
/// <returns>The bytecode for the compiled shader.</returns>
[Pure]
public ComPtr<IDxcBlob> CompileShader(ReadOnlySpan<char> source)
{
using ComPtr<IDxcBlobEncoding> dxcBlobEncoding = default;