Table of Contents

Class LocationAttribute

Namespace
Xui.GPU.Shaders.Attributes
Assembly
Xui.Core.dll

Specifies the location index for a vertex input or fragment output field.

[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class LocationAttribute : Attribute
Inheritance
LocationAttribute
Inherited Members

Constructors

LocationAttribute(int)

Initializes a new instance of the LocationAttribute class.

public LocationAttribute(int index)

Parameters

index int

The location index.

Properties

Index

Gets the location index.

public int Index { get; }

Property Value

int