Raw 1D Array Data in RuntimeEffect/Shader

12 views
Skip to first unread message

Ein Lixou

unread,
Nov 4, 2024, 6:18:10 AMNov 4
to skia-discuss
Hello!
I want to retrieve data from a shader, but don't know how.
There seems to be SkData, but I have no clue what the correct datatype for the uniform in the shader would be.
What would the right type be here? (It's an array of (f32, f32))
In wgsl, I used a 1d texture with RG16 format, but from the documentation I could find (didn't found much, maybe there are more resources you can link me to?) it seems like textures don't work in 1d?
Thanks
Reply all
Reply to author
Forward
0 new messages