Removed unnecessary code

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-01 12:47:23 +01:00
1 親 dea3a477ef
コミット 0714dedf1f
6ファイル変更
+15 -74

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

+1 -6
ファイルの表示
@@ -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();