Skip to content

Support variable-sized arrays in uniform buffers via arrayvec::ArrayVec/tinyvec::ArrayVec #10

@teoxoy

Description

@teoxoy

Since the arrayvec::ArrayVec/tinyvec::ArrayVec types have a hard cap on the items they contain, the capacity can be used on the shader side as the fixed-size array length.

Besides being able to use these Vec-like data structures, this will also allow this trick to work (we should however note somewhere that reading beyond the actual length of items that were written will effectively return garbage data).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions