Skip to content

Commit 81df48b

Browse files
committed
Update docs about render output displays
1 parent 5d853f9 commit 81df48b

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

manual/graphics/overview/index.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,28 @@ Flax supports performing scene rendering in lower resolution and upscaling the i
1717

1818
Flax performs upscaling by default using Catmull-Rom filtering with 9-taps. For more advanced upscaling you can use the open-source [AMD FidelityFX Super Resolution plugin for Flax Engine](https://github.com/FlaxEngine/FidelityFX-FSR).
1919

20-
### Get available screen resolutions
21-
You can get the available [screen resolutions and refresh rates](https://docs.flaxengine.com/api/FlaxEngine.GPUDevice.VideoOutputMode.html) like this:
20+
## Available Display Resolutions
2221

22+
You can get the available [screen resolutions and refresh rates](https://docs.flaxengine.com/api/FlaxEngine.GPUDevice.VideoOutputMode.html) using the following code:
23+
24+
# [C#](#tab/code-csharp)
2325
```cs
26+
// Monitors
27+
GPUDevice.VideoOutput[] outputs = GPUDevice.Instance.VideoOutputs;
28+
29+
// Fullscreen modes (VideoOutputIndex maps mode into specific output)
2430
GPUDevice.VideoOutputMode[] outputModes = GPUDevice.Instance.VideoOutputModes;
2531
```
32+
# [C++](#tab/code-cpp)
33+
```cpp
34+
#include "Engine/Graphics/GPUDevice.h"
35+
36+
// Monitors
37+
const Array<GPUDevice::VideoOutput>& outputs = GPUDevice::Instance->VideoOutputs;
38+
39+
// Fullscreen modes (VideoOutputIndex maps mode into specific output)
40+
const Array<GPUDevice::VideoOutputMode>& outputModes = GPUDevice::Instance->VideoOutputModes;
41+
```
42+
***
2643

27-
Depending on the connected screen(s), the same resolution might be available more than once, but with different refresh rates. If you only care about the resolutions and not the refresh rates, you will have to do some custom filtering to ensure that each resolution only exists once.
44+
Depending on the connected screen(s), the same resolution might be available more than once, but with different refresh rates. If you only care about the resolutions and not the refresh rates, you will have to do some custom filtering to ensure that each resolution only exists once.

0 commit comments

Comments
 (0)