mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 11:25:26 +00:00
doc: Document !2086
This commit is contained in:
parent
e154fd4513
commit
680af2d57c
6
doc/changes/auxiliary/mr.2086.md
Normal file
6
doc/changes/auxiliary/mr.2086.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
- u/u_config_json: Added new parameter `uint32_t *out_view_count` to the function `u_config_json_get_remote_settings` to provide the ability to retrieve the view count from the remote settings.
|
||||
|
||||
- u/device: Added new function `u_device_setup_one_eye`.
|
||||
|
||||
- u/u_distortion: Modified the function `u_distortion_cardboard_calculate` to accept a new parameter `struct xrt_device *xdev` for retrieving the `view_count` from the device. This `view_count` is then used for parameter settings, enhancing the functionality and flexibility of the distortion calculation.
|
9
doc/changes/compositor/mr.2086.md
Normal file
9
doc/changes/compositor/mr.2086.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
- xrt_layer_type: Renamed the `XRT_LAYER_STEREO_PROJECTION` to `XRT_LAYER_PROJECTION` and `XRT_LAYER_STEREO_PROJECTION_DEPTH` to `XRT_LAYER_PROJECTION_DEPTH` in the `xrt_layer_type` enumeration to support both mono and stereo projection layers. This change provides a more inclusive and versatile categorization of projection layers within the XRT framework, accommodating a wider range of use cases.
|
||||
|
||||
- multi_layer_entry: Updated the array length of xscs within multi_layer_entry from 4 to `2 * XRT_MAX_VIEWS` to accommodate a variable number of views.
|
||||
|
||||
- swapchain: Change `struct xrt_swapchain *l_xsc, struct xrt_swapchain *r_xsc` to `struct xrt_swapchain *xsc[XRT_MAX_VIEWS]`, in order to support multiple views' swapchains. When iterating, use `xrt_layer_data.view_count`.
|
||||
|
||||
- render: `render_resources` now has a `view_count` field, which is set to 1 for mono and 2 for stereo. This is used to iterate over the views in the render function.
|
||||
|
||||
- render: Use the `XRT_MAX_VIEWS` macro to calculate the length of a series of arrays.
|
3
doc/changes/xrt/mr.2086.md
Normal file
3
doc/changes/xrt/mr.2086.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
- xrt_defines: Added new define `XRT_MAX_VIEWS` to define the maximum number of views supported by the system. This is used to define the maximum number of views supported by the distortion calculation as well as other view-related arrays.
|
||||
|
||||
- xrt_device: Added new function `xrt_device_get_view_configuration` to get the view configuration for a device. Array size is determined by `XRT_MAX_VIEWS`.
|
Loading…
Reference in a new issue