Skip to content

Commit

Permalink
Remove Effect.toLayered
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jul 9, 2024
1 parent 59ac7f1 commit 43ed0bf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Libs/FShade.Core/Effect.fs
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,8 @@ module Effect =



let toLayered (layerSemantic : string) (customLayerSemantic : string)
(layers : int) (uniforms : Map<string, string>) (topology : InputTopology) (effect : Effect) =
let toLayeredEffect' (layerSemantic : string) (customLayerSemantic : string)
(layers : int) (uniforms : Map<string, string>) (topology : InputTopology) (effect : Effect) =
Serializer.Init()

if effect.TessControlShader.IsSome || effect.TessEvalShader.IsSome then
Expand Down Expand Up @@ -1044,14 +1044,11 @@ module Effect =
| None ->
ofList [ geometryShader ]

let toLayeredEffect' (layerSemantic : string) (layers : int) (uniforms : Map<string, string>) (topology : InputTopology) (effect : Effect) =
toLayered layerSemantic layerSemantic layers uniforms topology effect

let toLayeredEffect (layers : int) (uniforms : Map<string, string>) (topology : InputTopology) (effect : Effect) =
toLayeredEffect' Intrinsics.Layer layers uniforms topology effect
toLayeredEffect' Intrinsics.Layer Intrinsics.Layer layers uniforms topology effect

let toMultiViewportEffect (viewports : int) (uniforms : Map<string, string>) (topology : InputTopology) (effect : Effect) =
toLayeredEffect' Intrinsics.ViewportIndex viewports uniforms topology effect
toLayeredEffect' Intrinsics.ViewportIndex Intrinsics.ViewportIndex viewports uniforms topology effect



Expand Down

0 comments on commit 43ed0bf

Please sign in to comment.