Skip to content

cogl/texture: Add higher bit depth offscreen framebuffers support

Naveen Kumar requested to merge naveenk2/mutter:cogl-texture-format into main

Add API that introduce a method to allocate 2d textures given a passed pixel format (e.g. xrgb210101010, or fp16), and making sure things are rendered correctly to it when rendering to an offscreen.

This MR, also includes a cogl/tests to paint a color that can't be described using argb8888 but with argb2101010. Creates a test case that draws a single pixel to a e.g 1x1 texture with a color that can't be represented using argb8888 (exact pixel value is between two possible pixel values), and when reading back from the texture, the value must be correct and not have lost meaning.

This MR adds support for the issue #2291 & related to #2134

Merge request reports