oglplus
oglplus copied to clipboard
ssbo setup/update
how would i setup and update a shader-storage buffer object defined like this:
struct light_t { /* lots of attributes */ };
layout (std430) buffer light_list_t {
light_t light_list[];
};
i only seem to find examples using uniform buffer objects but not shader-storage buffer objects. or did i grep
in the wrong places?
There is no example of SSBO yet. I'll have to think of something.
well, a list of lights or materials would be my standard use case. thanks for picking this up.
any progress on this one? i've seen some change in the source tree with respect to ssbo enums but still don't see an example. i'm willing to clone an exisiting example and tinker with it if pointed in any/some/certain direction.
Well, sadly no, I've been busy with some other things. I'll give this a bump on the TODO list. But of course any contributions are welcome, don't hesitate to contact me if you need some help.
hi matus,
i implemented ssbo support based on uniform blocks. could you have a look at [e1506e71c3611d7c13c9f243adf5dbec05fe11cb] and tell me what you think?
Hi, it's looking good! If you create a pull request (preferably based on current develop) I'll merge the changes. Thanks.