콘텐츠로 이동

IImageFilterExecutor interface

이 콘텐츠는 아직 번역되지 않았습니다.

Backend-agnostic graph evaluator. Each backend implements its own concrete executor that handles the node types it can render natively. Unsupported nodes delegate to a fallback executor (typically the CPU one).

public interface IImageFilterExecutor
name description
MaxInputScale { get; } Upper bound on the LogicalToPixel scale at which the executor wants the source layer rasterized. GPU executors return PositiveInfinity (render at full requested scale for crisp source). CPU executors should return 1.0 - running Gaussian blur on a 12× upscaled buffer is orders of magnitude slower than rendering the source at 1× and letting the backend’s hardware bilinear stretch the small filter result up to the final display rect during DrawImage. The visual difference is minor (blur output is low-frequency) and the perf win is large.
Execute(…) Evaluates filter against context and returns the result. Caller owns the returned FilterResult and must using-dispose it (no-op for borrowed source results).