usage property

int usage
final

What the buffer may be bound as — uniform, vertex or index — beside COPY_DST, which every arena needs and this adds.

One arena per usage rather than one buffer with all three flags: a WebGPU buffer may carry several, but UNIFORM and VERTEX on one allocation is a hint to the implementation that it can do neither well, and the three have different alignments anyway.

Implementation

final int usage;