From 59b4b13062954d2c2f99a039ad25d367619ef9b2 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 23 May 2022 00:40:42 +0200 Subject: [PATCH] Add missing global:: prefix in generated LoadBytecode method --- .../ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs index 391851ba..fcaa7ce2 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs +++ b/src/ComputeSharp.D2D1.SourceGenerators/ID2D1ShaderGenerator.CreateLoadBytecodeMethod.Syntax.cs @@ -95,13 +95,13 @@ partial class ID2D1ShaderGenerator // This code produces a method declaration as follows: // - // ComputeSharp.D2D1.__Internals.D2D1ShaderCompiler.LoadDynamicBytecode(ref loader, in this, shaderProfile ?? , options ?? ); + // global::ComputeSharp.D2D1.__Internals.D2D1ShaderCompiler.LoadDynamicBytecode(ref loader, in this, shaderProfile ?? , options ?? ); ExpressionStatementSyntax dynamicLoadingStatement = ExpressionStatement( InvocationExpression( MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, - IdentifierName("ComputeSharp.D2D1.__Internals.D2D1ShaderCompiler"), + IdentifierName("global::ComputeSharp.D2D1.__Internals.D2D1ShaderCompiler"), IdentifierName("LoadDynamicBytecode"))) .AddArgumentListArguments( Argument(IdentifierName("loader")).WithRefKindKeyword(Token(SyntaxKind.RefKeyword)),