Added initial code to decompile static methods
このコミットが含まれているのは:
1 親
1f694466e6
コミット
aa5b76bec9
3ファイル変更
+91
-38
検索条件に一致するファイルはありません
@@ -8,6 +8,7 @@ using ComputeSharp.Graphics.Buffers.Abstract;
|
||||
using ComputeSharp.Shaders.Mappings;
|
||||
using ComputeSharp.Shaders.Renderer.Models.Fields;
|
||||
using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract;
|
||||
using ComputeSharp.Shaders.Translation.Enums;
|
||||
using ComputeSharp.Shaders.Translation.Models;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
@@ -243,7 +244,7 @@ namespace ComputeSharp.Shaders.Translation
|
||||
private void LoadMethodSource()
|
||||
{
|
||||
// Decompile the shader method
|
||||
MethodDecompiler.Instance.GetSyntaxTree(Action.Method, out MethodDeclarationSyntax root, out SemanticModel semanticModel);
|
||||
MethodDecompiler.Instance.GetSyntaxTree(Action.Method, MethodType.Closure, out MethodDeclarationSyntax root, out SemanticModel semanticModel);
|
||||
|
||||
// Rewrite the shader method (eg. to fix the type declarations)
|
||||
ShaderSyntaxRewriter syntaxRewriter = new ShaderSyntaxRewriter(semanticModel);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする