// 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.Attributes { /// /// Built-in shader semantics. /// public enum BuiltIn { /// /// Vertex position in clip space. /// Position, /// /// Fragment depth value. /// FragDepth, /// /// Vertex instance ID. /// InstanceId, /// /// Vertex ID. /// VertexId, } /// /// Specifies that a field represents a built-in shader semantic. /// [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public sealed class BuiltInAttribute : Attribute { /// /// Gets the built-in semantic. /// public BuiltIn Semantic { get; } /// /// Initializes a new instance of the class. /// /// The built-in semantic. public BuiltInAttribute(BuiltIn semantic); } /// /// Marks a type as a fragment shader stage. /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] public sealed class FragmentShaderAttribute : Attribute { } /// /// Attribute to control how a varying (vertex shader output / fragment shader input) is interpolated. /// /// /// This attribute maps to HLSL interpolation modifiers (linear, noperspective, nointerpolation), /// Metal's [[flat]], [[center_perspective]], etc., and Vulkan's interpolation decorations. /// [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)] public sealed class InterpolationAttribute : Attribute { /// /// Gets the interpolation mode. /// public InterpolationMode Mode { get; } /// /// Initializes a new instance of the class. /// /// The interpolation mode to use for this varying. public InterpolationAttribute(InterpolationMode mode); } /// /// Specifies the interpolation mode for a shader varying (vertex output / fragment input). /// public enum InterpolationMode { /// /// Default perspective-correct interpolation. /// Values are interpolated with perspective correction across the triangle. /// Perspective, /// /// Linear interpolation without perspective correction. /// Values are interpolated linearly in screen space. /// Linear, /// /// No interpolation - flat shading. /// The value from the provoking vertex is used for the entire primitive. /// Flat } /// /// Specifies the location index for a vertex input or fragment output field. /// [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public sealed class LocationAttribute : Attribute { /// /// Gets the location index. /// public int Index { get; } /// /// Initializes a new instance of the class. /// /// The location index. public LocationAttribute(int index); } /// /// Marks a type as a shader program definition. /// Used by source generators to discover and process shader programs. /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] public sealed class ShaderProgramAttribute : Attribute { } /// /// Marks a type as a vertex shader stage. /// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] public sealed class VertexShaderAttribute : Attribute { } }