Skip to content

Mesh single vbo with multiple non-interleaved attributes #22

Description

@invor

The current way VertexLayouts are handled, it's now longer possible to use a (VVVVNNNNCCCC) vertex buffer layout (i.e., multiple non-interleaved attributes in single vbo). This used to work because the older glVertexAttribPointer function would accept the large byte offset of such layouts, but the currently used glVertexArrayAttribFormat function uses a smaller relative offset.

Maybe rename the offset in VertexLayout to relative_offset? And introduce a new optional offset that defaults to 0?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions