A collection of DXGIKeyedMutex objects, one for each swapchain image in a swapchain.
More...
#include <client/comp_d3d_common.hpp>
|
static constexpr uint64_t | kKeyedMutexKey = 0 |
|
A collection of DXGIKeyedMutex objects, one for each swapchain image in a swapchain.
◆ KeyedMutexCollection()
xrt::compositor::client::KeyedMutexCollection::KeyedMutexCollection |
( |
u_logging_level |
log_level | ) |
|
|
explicitnoexcept |
Construct a new Keyed Mutex Collection object.
- Parameters
-
log_level | The compositor log level to use |
◆ init()
xrt_result_t xrt::compositor::client::KeyedMutexCollection::init |
( |
const std::vector< wil::com_ptr< ID3D11Texture2D1 > > & |
images | ) |
|
|
noexcept |
Make the keyed mutex vector before starting to use the images.
- Parameters
-
images | Your vector of textures to acquire keyed mutexes from. |
References XRT_SUCCESS.
◆ releaseKeyedMutex()
xrt_result_t xrt::compositor::client::KeyedMutexCollection::releaseKeyedMutex |
( |
uint32_t |
index | ) |
|
|
noexcept |
Release the keyed mutex.
- Parameters
-
index | Swapchain image index |
- Returns
- xrt_result_t
◆ waitKeyedMutex()
xrt_result_t xrt::compositor::client::KeyedMutexCollection::waitKeyedMutex |
( |
uint32_t |
index, |
|
|
uint64_t |
timeout_ns |
|
) |
| |
|
noexcept |
Wait for acquisition of the keyed mutex.
- Parameters
-
index | Swapchain image index |
timeout_ns | Timeout in nanoseconds or XRT_INFINITE_DURATION |
- Returns
- xrt_result_t: XRT_SUCCESS, XRT_TIMEOUT, or some error
The documentation for this class was generated from the following files: