Closed heyx3 closed 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.
@std430
is done! SSBO's are next, then this ticket is completed.
SSBO's have been tentatively added! Not yet tested, but BpWorld should be able to play with them eventually.
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.