Does every single struct have a corresponding buffer class?

Started by bcbradle, April 22, 2017, 18:18:49

Previous topic - Next topic

bcbradle

I'm writing a library in clojure for vulkan using lwjgl and it would simplify my implementation if I can just use buffers exclusively, and where I want to have an instance of a specific class rather than an instance of a buffer containing instances of that class, just take the 0th element of the buffer. Its not a deal breaker if there isn't, it would just make my code more homogeneous (which means it compresses through the D.R.Y. principle more readily).

I don't want to get halfway through that and realize that there isn't a buffer subclass for every struct, so I figured I'd ask.

spasi

Yes, every struct class has a corresponding Buffer class.