Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
GraphicsFence.hpp
Go to the documentation of this file.
1#pragma once
3
4namespace Faro
5{
6 /// @brief Marker to be placed on an adapter command queue. Allows for synchronization between CPU and graphics adapter.
8 {
9 public:
10 /// @brief Place a synchronization marker on the command queue of the related GraphicsAdapter.
11 virtual void Trigger() = 0;
12
13 /**
14 * @brief Check wether or not the previously marker (Triggered by GraphicsFence::Trigger) has been hit yet.
15 * @return true The marker has been hit
16 * @return false The marker has not been hit yet
17 */
18 virtual bool HasFinished() = 0;
19
20 /// @brief Wait for the previously marker (Triggered by GraphicsFence::Trigger) to be hit.
21 virtual void WaitForFinish() = 0;
22 };
23}
Marker to be placed on an adapter command queue. Allows for synchronization between CPU and graphics ...
Definition GraphicsFence.hpp:8
virtual void WaitForFinish()=0
Wait for the previously marker (Triggered by GraphicsFence::Trigger) to be hit.
virtual void Trigger()=0
Place a synchronization marker on the command queue of the related GraphicsAdapter.
virtual bool HasFinished()=0
Check wether or not the previously marker (Triggered by GraphicsFence::Trigger) has been hit yet.
Definition GraphicsAdapterChild.hpp:9
Definition Array.hpp:8