Merge branch 'jorth/spb-2' into 'main'

single-pixel-buffer: add support for floating-point buffers

See merge request wayland/wayland-protocols!395
This commit is contained in:
Julian Orth 2025-12-16 12:12:48 +01:00
commit a7257465e4

View file

@ -36,7 +36,7 @@
only be done by creating a new major version of the extension. only be done by creating a new major version of the extension.
</description> </description>
<interface name="wp_single_pixel_buffer_manager_v1" version="1"> <interface name="wp_single_pixel_buffer_manager_v1" version="2">
<description summary="global factory for single-pixel buffers"> <description summary="global factory for single-pixel buffers">
The wp_single_pixel_buffer_manager_v1 interface is a factory for The wp_single_pixel_buffer_manager_v1 interface is a factory for
single-pixel buffers. single-pixel buffers.
@ -72,5 +72,19 @@
<arg name="b" type="uint" summary="value of the buffer's blue channel"/> <arg name="b" type="uint" summary="value of the buffer's blue channel"/>
<arg name="a" type="uint" summary="value of the buffer's alpha channel"/> <arg name="a" type="uint" summary="value of the buffer's alpha channel"/>
</request> </request>
<request name="create_f32_rgba_buffer" since="2">
<description summary="create a 1×1 buffer from 32-bit IEEE 754 values">
The compositor interprets each value as the binary representation of a
IEEE 754 binary32 (also known as float, also known as f32) number.
The width and height of the buffer are 1.
</description>
<arg name="id" type="new_id" interface="wl_buffer"/>
<arg name="r" type="uint" summary="value of the buffer's red channel"/>
<arg name="g" type="uint" summary="value of the buffer's green channel"/>
<arg name="b" type="uint" summary="value of the buffer's blue channel"/>
<arg name="a" type="uint" summary="value of the buffer's alpha channel"/>
</request>
</interface> </interface>
</protocol> </protocol>