Skip to content

Commit

Permalink
Merge branch 'master' into v53
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Oct 17, 2022
2 parents 277c3d0 + 45b5c15 commit 51380cf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@
### 5.3.0-prerelease0001
* Initial prerelease version for 5.3

### 5.2.13
* Fixed issue with constant swizzles

### 5.2.12
* disabled warnings again

### 5.2.11
* printing warnings when Expr.TryGetReflectedDefinition fails

### 5.2.10
* try/with for Expr.TryGetReflectedDefinition (seems to raise exceptions in some cases)

### 5.2.9
* Fixed issue with topological sort and raytracing data
* Removed warnings in raytracing shaders
Expand Down
4 changes: 3 additions & 1 deletion src/Libs/FShade.Core/Serializer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,9 @@ module Serializer =
let (|ReflectedCall|_|) (e : Expr) =
match e with
| Call(t,mi,args) ->
let isInline = mi.GetCustomAttributes<InlineAttribute>() |> Seq.isEmpty |> not
let isInline =
try mi.GetCustomAttributes<InlineAttribute>() |> Seq.isEmpty |> not
with _ -> false
match ExprWorkardound.TryGetReflectedDefinition mi with
| Some def ->
let args =
Expand Down
3 changes: 2 additions & 1 deletion src/Libs/FShade.Imperative/Utilities.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module ExprWorkardound =

let TryGetReflectedDefinition (mb : MethodBase) =
lock lockObj (fun _ ->
Expr.TryGetReflectedDefinition mb
try Expr.TryGetReflectedDefinition mb
with e -> None
)

module Peano =
Expand Down

0 comments on commit 51380cf

Please sign in to comment.