BGRA8-UNORM is a Value that stores the four UNORM8 components B, G, R, and A packed in a fixed Payload of 2 WORD.

Layout

  • Code: Value VALUE-ISSUER-2WORD (0x09DL), Issuer 0x0000000E KHRONOS, codec number 0x00000001. Family NUMERIC.
TAG WORD          0x09D6 (0000 1001 1101 0110)  7 WORD in total
Issuer            2 WORD  0x0000000E (KHRONOS)
Codec number      2 WORD  0x00000001
Payload WORD 1st: [B: upper 8bit][G: lower 8bit]
Payload WORD 2nd: [R: upper 8bit][A: lower 8bit]

Interpretation rules

  • The serialized byte order is B, G, R, A, and the value of each component byte b is b / 255.
  • This corresponds to the byte 0–3 component order and the UNORM numeric mapping of Vulkan VK_FORMAT_B8G8R8A8_UNORM.
  • It is not an _SRGB format, so it does not imply sRGB or any other color space or transfer function. Alpha is also a UNORM value, but whether it is straight or premultiplied and its compositing semantics are external context. There is no ABI padding.

Validity

  • Every 8-bit pattern is valid. The Payload must be exactly 2 WORD.

Standards basis and formal status

  • The component memory order and the UNORM meaning follow VK_FORMAT_B8G8R8A8_UNORM of the Khronos Vulkan Formats specification and the Vulkan registry.
  • The GEUL TAG/Length and the two 16-bit big-endian WORD framing are GEUL-specific rules and do not define the serialization of a Vulkan image itself.

Length

  • The total is exactly 7 WORD: TAG 1 WORD, Issuer 2 WORD, codec number 2 WORD, and Payload 2 WORD, and it uses the direct length LLLL=0110. There is no Length extension TAG, no descriptor, and no padding.
  • If the Payload is not exactly 2 WORD, it is rejected.

Example

  • The Payload 0000 FF80 is the bytes B=00, G=00, R=FF, A=80.