NVIDIA Holoscan SDK v2.7.0
Holoscan v2.7.0

Function holoscan::viz::GetPresentModes

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 in present_mode_count. Otherwise, present_mode_count must point to a variable set by the application to the number of elements in the present_modes array, and on return the variable is overwritten with the number of values actually written to present_modes. If the value of present_mode_count is less than the number of presentation modes supported, at most present_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

Previous Function holoscan::viz::GetCurrent
Next Function holoscan::viz::GetSurfaceFormats
© Copyright 2022-2024, NVIDIA. Last updated on Dec 2, 2024.