gdk: Add A16_FLOAT and A32_FLOAT formats
authorBenjamin Otte <otte@redhat.com>
Fri, 21 Jul 2023 01:02:33 +0000 (03:02 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 21 Jul 2023 23:33:44 +0000 (01:33 +0200)
commit27fbdcbecb6e497cd9dfdde0e67fc77d05f8917e
treee8b23b0d7be3a98e0bae6edae165d72b90396f95
parent5bd13ccf157d704d30fd49326ea9cfd1696f1c15
gdk: Add A16_FLOAT and A32_FLOAT formats

We need them for mask-only textures.

For tiffs, we convert the formats to RGBA (the idea that tiff can save
everything needs to be buried I guess) as tiffs can't do alpha-only.
gdk/gdkenums.h
gdk/gdkmemoryformat.c
gdk/loaders/gdkpng.c
gdk/loaders/gdktiff.c
gsk/gskrendernodeparser.c
gsk/vulkan/gskvulkanimage.c
testsuite/gdk/memorytexture.c