Skip to content

Commit

Permalink
improve performance of buffer in mesh code (#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch authored Jul 20, 2023
1 parent 4224c08 commit bbb4ef7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1368,3 +1368,7 @@ end
to_color(sampler::ShaderAbstractions.Sampler) = el32convert(sampler)

assemble_colors(::ShaderAbstractions.Sampler, color, plot) = Observable(el32convert(color[]))

# BUFFER OVERLOAD

GeometryBasics.collect_with_eltype(::Type{T}, vec::ShaderAbstractions.Buffer{T}) where {T} = vec

0 comments on commit bbb4ef7

Please sign in to comment.