Skip to content

Commit

Permalink
[Debugger] Fix issue with single unit input shader functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jul 13, 2023
1 parent 2f06645 commit 7bd9bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Libs/FShade.Debug/Debugger.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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<unit>] 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<unit>] && x.Arguments.IsEmpty then 0
else x.Inputs.Length

override x.ToString() =
Expand Down

0 comments on commit 7bd9bef

Please sign in to comment.