Table of Contents

Class WebGPUBackdropGaussianBlurLayerEffect

Namespace
SixLabors.ImageSharp.Drawing.Processing.Backends
Assembly
SixLabors.ImageSharp.Drawing.WebGPU.dll

Provides a shader-accelerated counterpart to BackdropBlurLayerEffect.

public sealed class WebGPUBackdropGaussianBlurLayerEffect : WebGPUBackdropShaderLayerEffect, IWebGPUShaderEffect
Inheritance
WebGPUBackdropGaussianBlurLayerEffect
Implements
Inherited Members

Remarks

This effect can be used with both WebGPU and CPU drawing backends. WebGPU blurs the backdrop with separable shader passes; a CPU backend applies the equivalent BackdropBlurLayerEffect.

Constructors

WebGPUBackdropGaussianBlurLayerEffect(float)

Initializes a new instance of the WebGPUBackdropGaussianBlurLayerEffect class.

public WebGPUBackdropGaussianBlurLayerEffect(float sigma)

Parameters

sigma float

The Gaussian blur sigma, in pixels; zero leaves the backdrop unchanged.

Properties

Sigma

Gets the Gaussian blur sigma, in pixels.

public float Sigma { get; }

Property Value

float