Class HLSLArray
Attribute defining an HLSL array.
Namespace: UnityEngine.Rendering
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class HLSLArray : Attribute, _Attribute
Constructors
HLSLArray(Int32, Type)
HLSLSArray constructor.
Declaration
public HLSLArray(int arraySize, Type elementType)
Parameters
Type | Name | Description |
---|---|---|
Int32 | arraySize | Size of the array. |
Type | elementType | Type of the array elements. |
Fields
arraySize
Size of the array.
Declaration
public int arraySize
Field Value
Type | Description |
---|---|
Int32 |
elementType
Type of the array elements.
Declaration
public Type elementType
Field Value
Type | Description |
---|---|
Type |