formatVersion constant

int const formatVersion

Bumped when an event's fields change meaning, not when one is added.

A bump adds the step that lifts the previous version's header to _migrations and a fixture under test/fixtures/v<N>/.

Version 2 records what 1.0's descriptors say: an attachment's layer, a depth attachment's level, layer, face and read-only flags, and a createTexture of any TextureDescriptor (marked texture: true, with its dimension, layers, levels, usage and label). Each key is written only when it is not its default, so a version 1 header is a version 2 header that sets none of them; a version 1 reader would have dropped them and replayed a different frame, which is why the number moved.

Implementation

static const int formatVersion = 2;