Fence
The Fence class provides functionality for managing synchronization fences within a graphics or computing pipeline. It includes methods for querying platform and device-specific information, as well as creating and managing the state of a fence. Fences can be used to synchronize operations across different parts of the pipeline, ensuring that specific tasks are completed before others are initiated.
#include <platform/TellusimFence.h>
Constructors
Fence()
Methods
Fence platform.
Platform getPlatform() const
const char *getPlatformName() const
Fence device index.
uint32_t getIndex() const
Clear fence.
void clear()
Check fence.
bool isCreated() const
Create fence.
bool create(Flags flags = DefaultFlags)
Fence flags.
Flags getFlags() const
bool hasFlag(Flags flags) const
bool hasFlags(Flags flags) const
String getFlagsName() const
Fence description.
String getDescription() const
Enums
Flags
Fence flags.
Name | Value | Description |
---|---|---|
FlagNone | 0 | |
FlagSemaphore | (1 << 0) | Semaphore fence. |
FlagSignaled | (1 << 1) | Signaled state. |
FlagShared | (1 << 2) | Shared fence. |
FlagExtern | (1 << 3) | Extern fence. |
DefaultFlags | FlagNone | |
NumFlags | 4 |