Removed unnecessary code
このコミットが含まれているのは:
1 親
dea3a477ef
コミット
0714dedf1f
6ファイル変更
+15
-74
検索条件に一致するファイルはありません
@@ -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();
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする