Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssbo setup/update #76

Open
regnirpsj opened this issue Jul 26, 2014 · 6 comments
Open

ssbo setup/update #76

regnirpsj opened this issue Jul 26, 2014 · 6 comments
Assignees

Comments

@regnirpsj
Copy link
Contributor

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?

@matus-chochlik
Copy link
Owner

There is no example of SSBO yet. I'll have to think of something.

@matus-chochlik matus-chochlik self-assigned this Jul 26, 2014
@regnirpsj
Copy link
Contributor Author

well, a list of lights or materials would be my standard use case. thanks for picking this up.

@regnirpsj
Copy link
Contributor Author

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.

@matus-chochlik
Copy link
Owner

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.

@regnirpsj
Copy link
Contributor Author

hi matus,

i implemented ssbo support based on uniform blocks. could you have a look at [e1506e7] and tell me what you think?

@matus-chochlik
Copy link
Owner

Hi,
it's looking good!
If you create a pull request (preferably based on current develop) I'll merge the changes. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants