RenderSurfaceDescriptor structure
Describes the surface an IRenderDevice is asked to create.
public struct RenderSurfaceDescriptor : IEquatable<RenderSurfaceDescriptor>| parameter | description |
|---|---|
| PixelWidth | Width in device pixels. |
| PixelHeight | Height in device pixels. |
| DpiScale | DPI scale the surface reports as a render target. |
| Format | Pixel format. |
| Usage | Usages the surface is created for. |
| RequiredCapabilities | Capabilities the surface must offer. |
| LifetimeHint | How long the caller expects to keep the surface; the default is Frame. |
| DebugName | Optional name for diagnostics. |
Public Members
Section titled “Public Members”| name | description |
|---|---|
| RenderSurfaceDescriptor(…) | Describes the surface an IRenderDevice is asked to create. |
| static CachedImage(…) | Describes a surface kept across frames as a cached image source. |
| static CpuPixels(…) | Describes a CPU-readable and CPU-writable surface that can also be drawn into and kept as an image source. |
| static ExternalGpuWritable(…) | Describes a surface that external code writes through IExternalWritableGpuSurface and the backend samples. |
| static FilterIntermediate(…) | Describes an exact-size intermediate surface for filter graphs; requireCpuFallback adds CPU readability for nodes the CPU executor evaluates. |
| static Offscreen(…) | Describes a GPU-sampleable offscreen surface whose content is then drawn as an image. |
| static PresenterIntermediate(…) | Describes a frame-lifetime staging surface whose pixels the presenter reads back. |
| DebugName { get; set; } | Optional name for diagnostics. |
| DpiScale { get; set; } | DPI scale the surface reports as a render target. |
| Format { get; set; } | Pixel format. |
| LifetimeHint { get; set; } | How long the caller expects to keep the surface; the default is Frame. |
| PixelHeight { get; set; } | Height in device pixels. |
| PixelWidth { get; set; } | Width in device pixels. |
| RequiredCapabilities { get; set; } | Capabilities the surface must offer. |
| Usage { get; set; } | Usages the surface is created for. |
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Rendering