Open ericchenanpt opened 2 months ago
This works fine in CairoMakie:
but not in the GL backends. On WGLMakie I get
Type Vector{Int32} not supported
Stacktrace:
[1] error(s::String) @ Base ./error.jl:35
[2] type_string(context::WGLMakie.WebGL, t::Type) @ ShaderAbstractions ~/.julia/packages/ShaderAbstractions/20WwW/src/uniforms.jl:142
[3] type_string(context::WGLMakie.WebGL, x::Vector{Int32}) @ ShaderAbstractions ~/.julia/packages/ShaderAbstractions/20WwW/src/uniforms.jl:114
[4] type_string(context::WGLMakie.WebGL, t::Observable{Vector{Int32}}) @ ShaderAbstractions ~/.julia/packages/ShaderAbstractions/20WwW/src/uniforms.jl:140
[5] (::ShaderAbstractions.var"#27#29"{WGLMakie.WebGL, Dict{Symbol, Any}, Dict{Symbol, Any}})(io::IOBuffer) @ ShaderAbstractions ~/.julia/packages/ShaderAbstractions/20WwW/src/program.jl:109
[6] sprint(::Function; context::Nothing, sizehint::Int64) @ Base ./strings/io.jl:114
[7] sprint @ ./strings/io.jl:107 [inlined]
[8] Program @ ~/.julia/packages/ShaderAbstractions/20WwW/src/program.jl:103 [inlined]
[9] ShaderAbstractions.InstancedProgram(context::WGLMakie.WebGL, vertshader::String, fragshader::String, instance::GeometryBasics.Mesh{2, Float32, GeometryBasics.TriangleP{2, Float32, GeometryBasics.PointWithUV{2, Float32}}, GeometryBasics.FaceView{GeometryBasics.TriangleP{2, Float32, GeometryBasics.PointWithUV{2, Float32}}, GeometryBasics.PointWithUV{2, Float32}, GeometryBasics.NgonFace{3, GeometryBasics.OffsetInteger{-1, UInt32}}, StructArrays.StructVector{GeometryBasics.PointWithUV{2, Float32}, @NamedTuple{position::Vector{Point{2, Float32}}, uv::Vector{Vec{2, Float32}}}, Int64}, Vector{GeometryBasics.NgonFace{3, GeometryBasics.OffsetInteger{-1, UInt32}}}}}, per_instance::ShaderAbstractions.VertexArray{@NamedTuple{pos::Point{2, Float32}}, StructArrays.StructVector{@NamedTuple{pos::Point{2, Float32}}, @NamedTuple{pos::ShaderAbstractions.Buffer{Point{2, Float32}, Vector{Point{2, Float32}}}}, CartesianIndex{1}}}, uniforms::Dict{Symbol, Any}) @ ShaderAbstractions ~/.julia/packages/ShaderAbstractions/20WwW/src/program.jl:58
[10] scatter_shader(scene::Scene, attributes::Dict{Symbol, Observable}, plot::Scatter{Tuple{Vector{Point{2, Float64}}}}) @ WGLMakie ~/.julia/dev/Makie/WGLMakie/src/particles.jl:241
[11] create_shader(scene::Scene, plot::Scatter{Tuple{Vector{Point{2, Float64}}}}) @ WGLMakie ~/.julia/dev/Makie/WGLMakie/src/particles.jl:262
[12] serialize_three(scene::Scene, plot::AbstractPlot) @ WGLMakie ~/.julia/dev/Makie/WGLMakie/src/serialization.jl:335
Error & Stacktrace ⚠️
This error also shows up with LScene or Axis3, far as I can find.
Any insight would be helpful! Thank you.