From b1094ba061f4f696c440681eee8071fe649eb72e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 14 Dec 2023 15:56:08 +0100 Subject: [PATCH] Fix invalid arguments passed to HLSL rewriters --- .../SyntaxRewriters/ShaderSourceRewriter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/ShaderSourceRewriter.cs b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/ShaderSourceRewriter.cs index 00f1714f..6e9d6996 100644 --- a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/ShaderSourceRewriter.cs +++ b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/ShaderSourceRewriter.cs @@ -606,7 +606,7 @@ internal sealed partial class ShaderSourceRewriter( this.shaderType, SemanticModel, DiscoveredTypes, - this.instanceMethods, + this.staticMethods, this.instanceMethods, this.constructors, ConstantDefinitions, @@ -695,7 +695,7 @@ internal sealed partial class ShaderSourceRewriter( this.shaderType, SemanticModel, DiscoveredTypes, - this.instanceMethods, + this.staticMethods, this.instanceMethods, this.constructors, ConstantDefinitions,