namespace NodePipeline.Application; public struct ImageBuffer { public int Width; public int Height; public byte[] Pixels; // RGBARGBARGBA... public readonly Span GetPixelSpan() { return Pixels.AsSpan(); } public ImageBuffer(int width, int height) { Width = width; Height = height; Pixels = new byte[Width * Height * 4]; } }