ICpuPixelSurface interface
이 콘텐츠는 아직 번역되지 않았습니다.
A surface whose BGRA32 pixels live in CPU memory.
public interface ICpuPixelSurface : IRenderSurfaceMembers
Section titled “Members”| name | description |
|---|---|
| StrideBytes { get; } | Gets the byte distance between the starts of consecutive rows. |
| Clear(…) | Fills every pixel with color, premultiplying it when the surface is Premultiplied. |
| CommitCpuWrite() | Flushes pixels written through GetWritablePixelSpan to the surface’s GPU resource so a later draw or sample reflects them; a no-op for surfaces whose CPU buffer is the drawn memory or that upload from it when consumed. |
| CopyPixels() | Returns a copy of the pixel buffer. |
| GetReadOnlyPixelSpan() | Returns the pixel buffer for reading. |
| GetWritablePixelSpan() | Returns the pixel buffer for writing; call IncrementVersion and CommitCpuWrite afterwards so consumers see the change. |
| IncrementVersion() | Advances Version after the pixels were changed. |
See Also
Section titled “See Also”- interface IRenderSurface
- namespace Aprillz.MewUI.Rendering