GPU related locks
-
namespace d3d
-
struct GpuAutoLock
The GpuAutoLock struct is a lock that automatically acquires and releases a GPU lock. It is used to protect critical sections of code that interact with the GPU.
-
struct LoadingAutoLock
The LoadingAutoLock struct is a non-exclusive lock that protects a thread from GPU reset. It is used to ensure that the GPU is not reset while a thread is performing loading operations.
-
struct GPUWorkloadSplit
The GPUWorkloadSplit struct is used for scoped conditional GPU workload splitting. It allows splitting the GPU workload based on certain conditions.
Public Functions
-
inline GPUWorkloadSplit(bool do_split, bool split_at_end, const char *marker)
Constructs a GPUWorkloadSplit object.
- Parameters:
do_split – Flag indicating whether to split the GPU workload.
split_at_end – Flag indicating whether to split at the end.
marker – A marker used for splitting the workload.
-
inline ~GPUWorkloadSplit()
Destructs the GPUWorkloadSplit object. If a split is needed at the end, it performs the split.
Public Members
-
bool needSplitAtEnd
Flag indicating whether a split is needed at the end.
-
inline GPUWorkloadSplit(bool do_split, bool split_at_end, const char *marker)
-
struct GpuAutoLock