Skip to content

Commit

Permalink
eval functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arhik committed Feb 20, 2024
1 parent d2e05be commit e217b52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ for func in wgslfunctions
end |> eval
end

# Bitcast is internal function not exported
# So treating it specially here
#setproperty!(@__MODULE__, :bitcast, Base.bitcast)
#push!(wgslfunctions, :bitcast)
#wgslType(::typeof(eval(Base.bitcast))) = string(:bitcast)
#wgslType(::typeof(eval(Base.bitcast{S}))) where S = "bitcast<$(wgslType(S))>"

0 comments on commit e217b52

Please sign in to comment.