Class PostEffectBlurCore
- Namespace
- HelixToolkit.SharpDX.Core
- Assembly
- HelixToolkit.SharpDX.dll
public class PostEffectBlurCore : DisposeObject, IDisposable
- Inheritance
-
PostEffectBlurCore
- Implements
- Inherited Members
Constructors
PostEffectBlurCore(ShaderPass, ShaderPass, int, int, SamplerStateDescription, IEffectsManager?)
Initializes a new instance of the PostEffectMeshOutlineBlurCore class.
public PostEffectBlurCore(ShaderPass blurVerticalPass, ShaderPass blurHorizontalPass, int textureSlot, int samplerSlot, SamplerStateDescription sampler, IEffectsManager? manager)
Parameters
blurVerticalPassShaderPassblurHorizontalPassShaderPasstextureSlotintsamplerSlotintsamplerSamplerStateDescriptionmanagerIEffectsManager
Methods
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf true, managed resources should be disposed of in addition to unmanaged resources.
Run(RenderContext, DeviceContextProxy, ShaderResourceViewProxy, ref ViewportF, BlurDepth, ref BorderEffectStruct)
Runs the blur procedure
public virtual void Run(RenderContext context, DeviceContextProxy deviceContext, ShaderResourceViewProxy source, ref ViewportF sourceViewport, PostEffectBlurCore.BlurDepth depth, ref BorderEffectStruct modelStruct)
Parameters
contextRenderContextThe context.
deviceContextDeviceContextProxyThe device context.
sourceShaderResourceViewProxyThe source.
sourceViewportViewportFdepthPostEffectBlurCore.BlurDepthThe depth.
modelStructBorderEffectStruct