Removed unnecessary code
このコミットが含まれているのは:
1 親
dea3a477ef
コミット
0714dedf1f
6ファイル変更
+15
-74
検索条件に一致するファイルはありません
@@ -5,6 +5,7 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.Shaders.Extensions;
|
||||
|
||||
namespace ComputeSharp.Shaders.Translation
|
||||
{
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Core.Interop;
|
||||
using ComputeSharp.Graphics;
|
||||
using ComputeSharp.Graphics.Buffers.Abstract;
|
||||
using ComputeSharp.Shaders.Extensions;
|
||||
using ComputeSharp.Shaders.Mappings;
|
||||
using ComputeSharp.Shaders.Translation.Models;
|
||||
using Microsoft.Toolkit.Diagnostics;
|
||||
|
||||
@@ -178,12 +178,7 @@ namespace ComputeSharp.Shaders.Translation
|
||||
this.capturedFields.Add(fieldInfo);
|
||||
this.fieldsInfo.Add(new CapturedFieldInfo(hlslType, hlslName));
|
||||
}
|
||||
else if (fieldType.IsDelegate() &&
|
||||
fieldInfo.GetValue(shader) is Delegate func &&
|
||||
(func.Method.IsStatic || func.Method.DeclaringType!.IsStatelessDelegateContainer()) &&
|
||||
(HlslKnownTypes.IsKnownScalarType(func.Method.ReturnType) || HlslKnownTypes.IsKnownVectorType(func.Method.ReturnType)) &&
|
||||
fieldType.GenericTypeArguments.All(type => HlslKnownTypes.IsKnownScalarType(type) ||
|
||||
HlslKnownTypes.IsKnownVectorType(type)))
|
||||
else if (fieldInfo.GetValue(shader) is Delegate { Method: { IsStatic: true } } func)
|
||||
{
|
||||
// Captured static delegates with a return type
|
||||
throw new NotImplementedException();
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする