From bbb4ef7df0f17335dd8109f774dbfd03727cf835 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 20 Jul 2023 12:18:06 +0200 Subject: [PATCH] improve performance of buffer in mesh code (#3076) --- src/conversions.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/conversions.jl b/src/conversions.jl index b853d4482c4..296ce5251c5 100644 --- a/src/conversions.jl +++ b/src/conversions.jl @@ -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