Re: Uniform Buffers mapping and size
Posted by
Sven Gothel on
Jun 13, 2013; 6:24pm
URL: https://forum.jogamp.org/Uniform-Buffers-mapping-and-size-tp4029403p4029407.html
On 06/13/2013 08:19 PM, zzuegg [via jogamp] wrote:
> @jmaasing
> Yeah, i know, 'normal' uniforms work nicely. But since this is more a personal
> experiment i want to try this UBO thing. From what i get it would allow me to
> update uniforms trough different shaders with one update call. If possible i
> want to make the nicest implementation and for that structs seem to me the
> better choice.
>
> @Sven
> ES2 probably does not yet support UBO's. I think support comes with GLES3
I guess we shall work on supporting it (-> bugreport.enhancement)!
This requires to map a native structure to java,
but I have to read about UBO .. best while adding ES3 support :)
Ofc .. code snippets - maybe a unit tests which fails right now,
but uses UBO - or shows/documents how it is desired would be a good idea.
Pls send a pull request in this regard .. and add it's reference to the
bugreport. Thank you!
~Sven