Class WebGPUBackdropAcrylicLayerEffect
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.WebGPU.dll
Provides a shader-accelerated counterpart to BackdropAcrylicLayerEffect.
public sealed class WebGPUBackdropAcrylicLayerEffect : WebGPUBackdropShaderLayerEffect, IWebGPUShaderEffect
- Inheritance
-
WebGPUBackdropAcrylicLayerEffect
- Implements
- Inherited Members
Remarks
This effect can be used with both WebGPU and CPU drawing backends. WebGPU blurs and tints the backdrop with shader passes; a CPU backend applies the equivalent BackdropAcrylicLayerEffect.
Constructors
WebGPUBackdropAcrylicLayerEffect(float, Color)
Initializes a new instance of the WebGPUBackdropAcrylicLayerEffect class.
public WebGPUBackdropAcrylicLayerEffect(float sigma, Color tint)
Parameters
sigmafloatThe Gaussian blur sigma, in pixels.
tintColorThe tint blended over the blurred backdrop.
Properties
Sigma
Gets the Gaussian blur sigma, in pixels.
public float Sigma { get; }
Property Value
Tint
Gets the tint blended over the blurred backdrop.
public Color Tint { get; }