Glavnokoman / vuh

Vulkan compute for people
https://glavnokoman.github.io/vuh
MIT License
346 stars 34 forks source link

Can vuh::Array contain a struct? #49

Open Bambofy opened 4 years ago

Bambofy commented 4 years ago

I would like to store structs and pass them to the compute shaders in buffers, is this possible?

For example struct:

struct Vector2
{
    float x;
    float y;
}
Glavnokoman commented 4 years ago

Why don't you give it a try? (hint: if it does not work file a bug)