Property Cached
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Core.dll
Cached
The output of the effect should be cached.
The default value is false
.
public EffectPropertyAccessor<bool> Cached { get; }
Property Value
Remarks
Setting this to true
may or may not improve performance, and will likely increase
GPU memory use (sometimes substantially). It can be used to workaround some bugs in Direct2D's
built-in effects library, such as when using ScaleEffect with a clipping rect.
It can also sometimes be used to fix an IntermediateTooLargeException in certain
types of effect graphs, such as when chaining transforms (e.g. ScaleEffect,
AffineTransform2DEffect, PerspectiveTransform3DEffect,
Transform3DEffect).