You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest we don't define the "packed" in any confusing way
Dzmitry: Thank you for creating this issue (a while ago!), as I was just reading through the spec and couldn't be sure whether rgba8unorm actually meant what you'd naturally expect (red, green, blue, and then alpha in memory order), or whether it might be backwards like Vulkan VK_FORMAT_A8B8G8R8_UNORM_PACK32. The texture formats section could use a little note clarifying that.
We resolved to pick straight order today.
Myles: Great, that makes WebGPU's formats more internally self-consistent, such that rgba32float means red comes first in memory and that rgba8unormalso means red comes first in memory, which is consistent with the GenICam Pixel Format Naming specification, DXGI_FORMAT_R8G8B8A8_UNORM, MTLPixelFormat::rgba8Unorm, kCVPixelFormatType_32RGBA, AV_PIX_FMT_RGBA, and VK_FORMAT_R8G8B8A8_UNORM. Now named formats like VK_FORMAT_A8B8G8R8_UNORM_PACK32 and PIXMAN_a8r8g8b8 can fade away as a sources of confusion.
This bug is still open indeed to clarify this in the spec. There just isn't much time for spec work among the team these days, so it's been open for... uh... 5 years.
Activity
grorg commentedon Mar 18, 2019
Discussed at 18 Mar 2019 teleconference
litherum commentedon Mar 18, 2019
We resolved to pick straight order today.
Move visibility_and_dynamic_offset to createBindGroupLayout tests (gp…
fdwr commentedon Feb 7, 2024
Dzmitry: Thank you for creating this issue (a while ago!), as I was just reading through the spec and couldn't be sure whether
rgba8unormactually meant what you'd naturally expect (red, green, blue, and then alpha in memory order), or whether it might be backwards like VulkanVK_FORMAT_A8B8G8R8_UNORM_PACK32. The texture formats section could use a little note clarifying that.Myles: Great, that makes WebGPU's formats more internally self-consistent, such that
rgba32floatmeans red comes first in memory and thatrgba8unormalso means red comes first in memory, which is consistent with the GenICam Pixel Format Naming specification,DXGI_FORMAT_R8G8B8A8_UNORM,MTLPixelFormat::rgba8Unorm,kCVPixelFormatType_32RGBA,AV_PIX_FMT_RGBA, andVK_FORMAT_R8G8B8A8_UNORM. Now named formats likeVK_FORMAT_A8B8G8R8_UNORM_PACK32andPIXMAN_a8r8g8b8can fade away as a sources of confusion.kainino0x commentedon Feb 7, 2024
This bug is still open indeed to clarify this in the spec. There just isn't much time for spec work among the team these days, so it's been open for... uh... 5 years.
fdwr commentedon Feb 8, 2024
@kainino0x: 🤔 You think if I created a small CR that someone would have time to review it?
kainino0x commentedon Feb 8, 2024
@fdwr yes, just @ me!