mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-20 08:10:07 +01:00
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:
commit
a7257465e4
1 changed files with 15 additions and 1 deletions
|
|
@ -36,7 +36,7 @@
|
|||
only be done by creating a new major version of the extension.
|
||||
</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">
|
||||
The wp_single_pixel_buffer_manager_v1 interface is a factory for
|
||||
single-pixel buffers.
|
||||
|
|
@ -72,5 +72,19 @@
|
|||
<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>
|
||||
|
||||
<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>
|
||||
</protocol>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue