Skip to content

Commit

Permalink
Add optional parameter to Effect.Link()
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Aug 5, 2024
1 parent 1891fb3 commit 87e3b5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Aardvark.Rendering/Effects/Interop/FShade.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ open Aardvark.Base
open Aardvark.Rendering
open FShade
open System.Runtime.CompilerServices
open System.Runtime.InteropServices
open Microsoft.FSharp.Quotations
open FSharp.Data.Adaptive
open System
Expand Down Expand Up @@ -527,5 +528,7 @@ type RuntimeFShadeInteropExtensions() =
Effect.link signature topology false effect

[<Extension>]
static member Link (effect: Effect, signature: IFramebufferSignature, topology: IndexedGeometryMode) =
Effect.link signature topology false effect
static member Link (effect: Effect, signature: IFramebufferSignature,
[<Optional; DefaultParameterValue(IndexedGeometryMode.TriangleList)>] topology: IndexedGeometryMode,
[<Optional; DefaultParameterValue(false)>] flipHandedness: bool) =
Effect.link signature topology flipHandedness effect

0 comments on commit 87e3b5b

Please sign in to comment.