LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: Does every single struct have a corresponding buffer class?  (Read 225 times)

bcbradle

  • Newbie
  • *
  • Offline Offline
  • Posts: 17

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.
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1888
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.
Logged