ScratchSurfaceKey structure
Identifies interchangeable offscreen render surfaces in the scratch pool. Two surfaces with the same key can be swapped for one another because the renter repaints the content it needs.
public struct ScratchSurfaceKey : IEquatable<ScratchSurfaceKey>| parameter | description |
|---|---|
| PixelWidth | Allocated surface width in pixels. |
| PixelHeight | Allocated surface height in pixels. |
| DpiScale | DPI scale the surface was created with. |
| HasAlpha | Whether the surface carries a per-pixel alpha channel. |
| ResourceClass | Opaque compatibility class used to prevent cross-purpose reuse. |
Public Members
Section titled “Public Members”| name | description |
|---|---|
| ScratchSurfaceKey(…) | Identifies interchangeable offscreen render surfaces in the scratch pool. Two surfaces with the same key can be swapped for one another because the renter repaints the content it needs. |
| DpiScale { get; set; } | DPI scale the surface was created with. |
| HasAlpha { get; set; } | Whether the surface carries a per-pixel alpha channel. |
| PixelHeight { get; set; } | Allocated surface height in pixels. |
| PixelWidth { get; set; } | Allocated surface width in pixels. |
| ResourceClass { get; set; } | Opaque compatibility class used to prevent cross-purpose reuse. |
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Rendering