38 using Converter = AttributeConverter<T>;
39 using VBOType = typename Converter::VBOType;
40 if constexpr (!std::is_void_v<VBOType>) {
41 const Span<T> src = attribute.typed<T>();
42 MutableSpan<VBOType> data = vbo.data<VBOType>();
43 if constexpr (std::is_same_v<T, VBOType>) {
44 array_utils::copy(src, data);
47 threading::parallel_for(src.index_range(), 8192, [&](const IndexRange range) {
48 for (const int i : range) {
49 data[i] = Converter::convert(src[i]);