Function holoscan::viz::GetPresentModes
Defined in File holoviz.hpp
-
void holoscan::viz::GetPresentModes(uint32_t *present_mode_count, PresentMode *present_modes)
Get the supported present modes.
<a class="reference internal" href="function_modules_2holoviz_2src_2holoviz_2holoviz_8hpp_1a9b6ca550663db0ab06c5f3ba6877dff7.html#modules_2holoviz_2src_2holoviz_2holoviz_8hpp_1a9b6ca550663db0ab06c5f3ba6877dff7" target="_self">viz::Init()</a>
has to be called before since the present modes depend on the window.If
present_modes
is nullptr, then the number of present modes supported for the current window is returned inpresent_mode_count
. Otherwise,present_mode_count
must point to a variable set by the application to the number of elements in thepresent_modes
array, and on return the variable is overwritten with the number of values actually written topresent_modes
. If the value ofpresent_mode_count
is less than the number of presentation modes supported, at mostpresent_mode_count
values will be written,- Parameters
present_mode_count – number of presentation modes available or queried
present_modes – either nullptr or a pointer to an array of PresentMode values