flyx / OpenGLAda

Thick Ada binding for OpenGL and GLFW
flyx.github.io/OpenGLAda/
MIT License
96 stars 13 forks source link

Add initial support for shader storage buffer objects #146

Closed Roldak closed 3 years ago

Roldak commented 3 years ago

This very simple PR enables basic support for shader storage buffer objects (SSBOs).

The 0x90d2 value comes from here.

flyx commented 3 years ago

Code looks good. Is this actually usable without the other things from ARB_shader_storage_buffer_object (I don't follow modern OpenGL these days)? I would like to ensure that all functionality that is wrapped can actually be used for something without depending on other functionality that is not wrapped.

Roldak commented 3 years ago

Is this actually usable without the other things from ARB_shader_storage_buffer_object (I don't follow modern OpenGL these days)?

Yes it's usable! Probably some stuff is missing for advanced users but personally I was able to use it as a drop-in replacement for uniform buffer objects where I needed (mainly for storage size reasons).

flyx commented 3 years ago

Great, I'll merge this then. Thanks!