From 7bd9bef32ed96546ff6315541b96c8d9398d5232 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 13 Jul 2023 09:35:35 +0200 Subject: [PATCH] [Debugger] Fix issue with single unit input shader functions --- src/Libs/FShade.Debug/Debugger.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Libs/FShade.Debug/Debugger.fs b/src/Libs/FShade.Debug/Debugger.fs index 802fbe1..bb621b0 100644 --- a/src/Libs/FShade.Debug/Debugger.fs +++ b/src/Libs/FShade.Debug/Debugger.fs @@ -54,8 +54,8 @@ module ShaderDebugger = } member x.InputCount = - // If there is a single unit input, the respective function will have no parameters -> treat as zero inputs - if x.Inputs = [typeof] then 0 + // If there is a single unit input and no applied arguments, the respective function will have no parameters -> treat as zero inputs + if x.Inputs = [typeof] && x.Arguments.IsEmpty then 0 else x.Inputs.Length override x.ToString() =