struct PixelFormatAndModifier
Defined at line 25 of file ../../zircon/system/ulib/sysmem-version/include/lib/sysmem-version/sysmem-version.h
In sysmem V1, there's a PixelFormat FIDL struct that includes both pixel_format and
pixel_format_modifier, used as a self-contained structure / sub-structure in various places in
FIDL and C++ code. While that's sensible from a data organization point of view and handy for
the sysmem server, the sub-structure means more typing than necessary for a typical sysmem usage.
In V2 we instead just have two separate fields in each parent table. We use this C++ struct in
the C++ code to avoid needing to plumb two values everywhere in the sysmem server. This is also
used as the V2 analog of fuchsia_sysmem::PixelFormat (V1) when converting between V1 and V2.
Public Members
PixelFormat pixel_format
PixelFormatModifier pixel_format_modifier
Public Methods
void PixelFormatAndModifier ()
Inits fields to zero when default-constructed.
Defined at line 27 of file ../../zircon/system/ulib/sysmem-version/include/lib/sysmem-version/sysmem-version.h
void PixelFormatAndModifier (fuchsia_images2::PixelFormat pixel_format_param, fuchsia_images2::PixelFormatModifier pixel_format_modifier_param)
Defined at line 30 of file ../../zircon/system/ulib/sysmem-version/include/lib/sysmem-version/sysmem-version.h