// Generated API outline. Implementation bodies omitted. #nullable enable using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using System.Threading; using System; using nfloat = System.Runtime.InteropServices.NFloat; using static Xui.Core.Math2D.Constants; namespace Xui.GPU.Shaders { using Xui.GPU.Shaders.Types; /// /// Standard fragment shader output structure. /// public struct FragmentOutput { /// /// The output color value. /// public Color4 Color; } } namespace Xui.GPU.Shaders { /// /// Fragment shader interface that computes pixel colors. /// /// The fragment input/varyings structure type. /// The fragment output structure type. /// The shader resource bindings type. public interface IFragmentShader : IShaderStage where TInput : unmanaged where TOutput : unmanaged where TBindings : struct { /// /// Executes the fragment shader for a single fragment. /// /// The interpolated fragment input data. /// The shader resource bindings. /// The computed fragment output. TOutput Execute(TInput input, in TBindings bindings); } /// /// Base interface for all shader stages. /// Shader stages are the execution points in the rendering pipeline. /// public interface IShaderStage { } /// /// Vertex shader interface that transforms vertex input data. /// /// The vertex input structure type. /// The vertex output/varyings structure type. /// The shader resource bindings type. public interface IVertexShader : IShaderStage where TInput : unmanaged where TOutput : unmanaged where TBindings : struct { /// /// Executes the vertex shader for a single vertex. /// /// The vertex input data. /// The shader resource bindings. /// The transformed vertex output. TOutput Execute(TInput input, in TBindings bindings); } }