LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: bcbradle on April 22, 2017, 18:18:49

Title: Does every single struct have a corresponding buffer class?
Post by: bcbradle on April 22, 2017, 18:18:49
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.
Title: Re: Does every single struct have a corresponding buffer class?
Post by: spasi on April 22, 2017, 19:08:46
Yes, every struct class has a corresponding Buffer class.