Added support for static fields of any type

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-18 11:16:30 +02:00
1 親 af2cbe43c8
コミット a2e5d5326f
2ファイル変更
+3 -5

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

+2 -2
ファイルの表示
@@ -108,8 +108,8 @@ namespace ComputeSharp.Shaders.Extensions
};
}
// Captured variable, treat it like any other captured variable in the closure
if (!isReadonly && fieldInfo != null)
// Captured field, treat it like any other captured variable in the closure
if (fieldInfo != null)
{
string name = $"{containingMemberSymbolInfo.Symbol.Name}_{fieldInfo.Name}";
variable = (name, fieldInfo);