-
Notifications
You must be signed in to change notification settings - Fork 6k
Added wide gamut colors to offscreen buffers #39482
Conversation
fd23012
to
a2e1384
Compare
a2e1384
to
e6da784
Compare
@@ -86,6 +92,8 @@ constexpr MTLPixelFormat ToMTLPixelFormat(PixelFormat format) { | |||
return SafeMTLPixelFormatBGR10_XR_sRGB(); | |||
case PixelFormat::kB10G10R10XR: | |||
return SafeMTLPixelFormatBGR10_XR(); | |||
case PixelFormat::kB10G10R10A10XR: | |||
return SafeMTLPixelFormatBGRA10_XR(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add reverse conversion to ToMTLBlendFactor
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reverse for this is in FromMTLPixelFormat
. I think that's what you were thinking, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yup, disregard
@@ -138,6 +138,7 @@ constexpr vk::Format ToVKImageFormat(PixelFormat format) { | |||
switch (format) { | |||
case PixelFormat::kUnknown: | |||
case PixelFormat::kB10G10R10XR: | |||
case PixelFormat::kB10G10R10A10XR: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add reverse conversion to ToPixelFormat
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no reverse for this yet since it's mapped to vk::Format::eUndefined
. I don't think this format will ever be used with vulkan as far as I know.
…120821) * b59787f40 Roll Skia from cd19d680b078 to 21627ff455d0 (2 revisions) (flutter/engine#39650) * 9af56b3ee [macOS] Set textfield autofill type (flutter/engine#39632) * a8b3d1af5 Added wide gamut colors to offscreen buffers (flutter/engine#39482)
issue: flutter/flutter#117182
integration test: flutter/flutter#120131
I spent some time trying to make BGR10_XR work but I couldn't figure it out, so I punted on it for now. Getting smaller textures is more important for now.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.