Table of Contents

Class GpuEffect

Namespace
PaintDotNet.Effects.Gpu
Assembly
PaintDotNet.Effects.Core.dll

The base class for Direct2D GPU effects. This class is for advanced scenarios. You should probably derive from GpuImageEffect/PropertyBasedGpuImageEffect or GpuDrawingEffect/PropertyBasedGpuDrawingEffect.

public abstract class GpuEffect : EffectBase, ISerializable, IGpuEffect, IEffect, IObjectRef, IIsDisposed, IDisposable
Inheritance
GpuEffect
Implements
Derived
Inherited Members
Extension Methods

Properties

Environment

Methods

OnDispose(bool)
OnDraw(IDeviceContext, RectInt32)

This method is called to render a portion of the output. You may use the clipRect to optimize your drawing calls.

OnInitializeRenderInfo(IGpuEffectRenderInfo)
OnInvalidateDeviceResources()

This method can be used to Dispose() any resources created from the device context.

OnSetDeviceContext(IDeviceContext)

This method is called when the device context is initialized or recreated.

OnSetToken(EffectConfigToken?)