|
Sunshine master
Self-hosted game stream host for Moonlight.
|
#include <src/platform/windows/display.h>
Public Member Functions | |
| int | init (display_base_t *display, const ::video::config_t &config) |
| Initialize D3D cursor rendering resources for GPU capture. | |
| capture_e | next_frame (std::chrono::milliseconds timeout, ID3D11Texture2D **out, uint64_t &out_time) |
| Acquire the next frame from the Windows capture backend. | |
| capture_e | release_frame () |
| Release resources associated with frame. | |
| int | set_cursor_visible (bool cursor_visible) |
| Enable or disable cursor composition in Windows.Graphics.Capture frames. | |
Display duplicator that uses the Windows.Graphics.Capture API.
| int platf::dxgi::wgc_capture_t::init | ( | display_base_t * | display, |
| const ::video::config_t & | config ) |
Initialize D3D cursor rendering resources for GPU capture.
Initialize the Windows.Graphics.Capture backend.
| display | Display object or identifier associated with the operation. |
| config | Configuration values to apply. |
| capture_e platf::dxgi::wgc_capture_t::next_frame | ( | std::chrono::milliseconds | timeout, |
| ID3D11Texture2D ** | out, | ||
| uint64_t & | out_time ) |
Acquire the next frame from the Windows capture backend.
Get the next frame from the producer thread. If not available, the capture thread blocks until one is, or the wait times out.
| timeout | Maximum time to wait for the operation. |
| out | Output object populated by the operation. |
| out_time | QPC timestamp associated with the acquired frame. |
| capture_e platf::dxgi::wgc_capture_t::release_frame | ( | ) |
Release resources associated with frame.
| int platf::dxgi::wgc_capture_t::set_cursor_visible | ( | bool | cursor_visible | ) |
Enable or disable cursor composition in Windows.Graphics.Capture frames.
| cursor_visible | Whether the cursor should be included in captured frames. |