|
Lines 63-68
class Resource : angle::NonCopyable
a/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_resources.h_sec1
|
| 63 |
bool isCPUReadMemNeedSync() const { return mUsageRef->cpuReadMemNeedSync; } |
63 |
bool isCPUReadMemNeedSync() const { return mUsageRef->cpuReadMemNeedSync; } |
| 64 |
void resetCPUReadMemNeedSync() { mUsageRef->cpuReadMemNeedSync = false; } |
64 |
void resetCPUReadMemNeedSync() { mUsageRef->cpuReadMemNeedSync = false; } |
| 65 |
|
65 |
|
|
|
66 |
bool isCPUReadMemSyncPending() const { return mUsageRef->cpuReadMemSyncPending; } |
| 67 |
void setCPUReadMemSyncPending(bool value) const { mUsageRef->cpuReadMemSyncPending = value; } |
| 68 |
void resetCPUReadMemSyncPending() { mUsageRef->cpuReadMemSyncPending = false; } |
| 69 |
|
| 66 |
bool isCPUReadMemDirty() const { return mUsageRef->cpuReadMemDirty; } |
70 |
bool isCPUReadMemDirty() const { return mUsageRef->cpuReadMemDirty; } |
| 67 |
void resetCPUReadMemDirty() { mUsageRef->cpuReadMemDirty = false; } |
71 |
void resetCPUReadMemDirty() { mUsageRef->cpuReadMemDirty = false; } |
| 68 |
|
72 |
|
|
Lines 82-87
class Resource : angle::NonCopyable
a/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_resources.h_sec2
|
| 82 |
// This flag means the resource was issued to be modified by GPU, if CPU wants to read |
86 |
// This flag means the resource was issued to be modified by GPU, if CPU wants to read |
| 83 |
// its content, explicit synchornization call must be invoked. |
87 |
// its content, explicit synchornization call must be invoked. |
| 84 |
bool cpuReadMemNeedSync = false; |
88 |
bool cpuReadMemNeedSync = false; |
|
|
89 |
|
| 90 |
// This flag is set when synchronization for the resource has been |
| 91 |
// encoded on the GPU, and a map operation must wait |
| 92 |
// until it's completed. |
| 93 |
bool cpuReadMemSyncPending = false; |
| 85 |
|
94 |
|
| 86 |
// This flag is useful for BufferMtl to know whether it should update the shadow copy |
95 |
// This flag is useful for BufferMtl to know whether it should update the shadow copy |
| 87 |
bool cpuReadMemDirty = false; |
96 |
bool cpuReadMemDirty = false; |