LockMode enumeration
이 콘텐츠는 아직 번역되지 않았습니다.
Tells consumers how a call to Lock reaches the pixel buffer.
public enum LockModeValues
Section titled “Values”| name | value | description |
|---|---|---|
| Direct | 0 |
The buffer is already in CPU memory and is exposed without an intermediate copy or conversion. |
| Readback | 1 |
The buffer lives on the GPU, so Lock copies it back after waiting for the GPU, stalling the CPU on a sync barrier. |
Remarks
Section titled “Remarks”Consumers that have a deferred path can avoid invoking Lock when it would trigger a GPU sync barrier.
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Resources