Class WebGPUBackdropColorMatrixLayerEffect
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.WebGPU.dll
Provides a shader-accelerated counterpart to BackdropColorMatrixLayerEffect.
public sealed class WebGPUBackdropColorMatrixLayerEffect : WebGPUBackdropShaderLayerEffect, IWebGPUShaderEffect
- Inheritance
-
WebGPUBackdropColorMatrixLayerEffect
- Implements
- Inherited Members
Remarks
This effect can be used with both WebGPU and CPU drawing backends. WebGPU transforms the backdrop with a shader; a CPU backend applies the equivalent BackdropColorMatrixLayerEffect.
Constructors
WebGPUBackdropColorMatrixLayerEffect(ColorMatrix)
Initializes a new instance of the WebGPUBackdropColorMatrixLayerEffect class.
public WebGPUBackdropColorMatrixLayerEffect(ColorMatrix matrix)
Parameters
matrixColorMatrixThe colour matrix applied to the backdrop.
Properties
Matrix
Gets the colour matrix applied to the backdrop.
public ColorMatrix Matrix { get; }