heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
72 stars 3 forks source link

Properly handle buffers as uniforms #37

Closed heyx3 closed 1 year ago

heyx3 commented 1 year ago

So far I've been glossing over the issue. We take a raw OpenGL buffer handle rather than a Buffer, and we don't discriminate between SSBO vs UBO. We also don't let the user specify which binding index to use.

heyx3 commented 1 year ago

UBO support has been added; SSBO is not far behind.

I also added a macro, @std140, that pads out a Julia struct so that its byte representation matches std140-layout UBO's. Next I'm going to add @std430, a more efficient layout that you can use in SSBO's.

heyx3 commented 1 year ago

@std430 is done! SSBO's are next, then this ticket is completed.

heyx3 commented 1 year ago

SSBO's have been tentatively added! Not yet tested, but BpWorld should be able to play with them eventually.