alignment property

int alignment
final

What every allocation's offset is rounded up to.

256 for uniforms, because that is minUniformBufferOffsetAlignment on every implementation so far and a dynamic offset that is not a multiple of it is refused. Four for vertices and indices, which is what writeBuffer itself demands.

Implementation

final int alignment;