mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
795 B
17 lines
795 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using System;
|
|
using System.Numerics;
|
|
using SixLabors.Primitives;
|
|
|
|
namespace SixLabors.ImageSharp.Processing
|
|
{
|
|
/// <summary>
|
|
/// A <see langword="delegate"/> representing a user defined pixel shader.
|
|
/// </summary>
|
|
/// <param name="span">The target row of <see cref="Vector4"/> pixels to process.</param>
|
|
/// <param name="offset">The initial horizontal and vertical offset for the input pixels to process.</param>
|
|
/// <remarks>The <see cref="Vector4.X"/>, <see cref="Vector4.Y"/>, <see cref="Vector4.Z"/>, and <see cref="Vector4.W"/> fields map the RGBA channels respectively.</remarks>
|
|
public delegate void PositionAwarePixelShader(Span<Vector4> span, Point offset);
|
|
}
|
|
|