Hello Guest

Does every single struct have a corresponding buffer class?

  • 1 Replies
  • 566 Views
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.

*

Offline spasi

  • *****
  • 1988
    • WebHotelier
Re: Does every single struct have a corresponding buffer class?
« Reply #1 on: April 22, 2017, 19:08:46 »
Yes, every struct class has a corresponding Buffer class.