Class InterpolationAttribute
- Namespace
- Xui.GPU.Shaders.Attributes
- Assembly
- Xui.Core.dll
Attribute to control how a varying (vertex shader output / fragment shader input) is interpolated.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class InterpolationAttribute : Attribute
- Inheritance
-
InterpolationAttribute
- Inherited Members
Remarks
This attribute maps to HLSL interpolation modifiers (linear, noperspective, nointerpolation), Metal's [[flat]], [[center_perspective]], etc., and Vulkan's interpolation decorations.
Constructors
InterpolationAttribute(InterpolationMode)
Initializes a new instance of the InterpolationAttribute class.
public InterpolationAttribute(InterpolationMode mode)
Parameters
modeInterpolationModeThe interpolation mode to use for this varying.
Properties
Mode
Gets the interpolation mode.
public InterpolationMode Mode { get; }