abergmeier
abergmeier

Reputation: 14052

Memory layout of VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM

I am trying to figure out which memory layout VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM has in Vulkan. What I think I understand:

So I would have expected components to be something like G0G1B0R0G2G3B2R2.

Which would satisfy 4:2:0:

Getting RGB, planes and 420 combined seems too much for my brain.

Could someone explain how this is supposed to be interpreted.

Upvotes: 0

Views: 401

Answers (1)

krOoze
krOoze

Reputation: 13246

It is multi-plane image, so basically each component is its own separate image (resp. aspect).

The G plane is image size. The B and R planes are each half width and height.

Upvotes: 1

Related Questions