Class PackingAttribute
Attribute defining packing.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class PackingAttribute : Attribute
Constructors
Name | Description |
---|---|
PackingAttribute(string, FieldPacking, int, int, float, float, bool, bool, bool, string) | Packing Attribute constructor. |
PackingAttribute(string[], FieldPacking, int, int, float, float, bool, bool, bool, string) | Packing Attribute constructor. |
Fields
Name | Description |
---|---|
checkIsNormalized | True if the field is an sRGB value. |
displayNames | Display names. |
isDirection | True if the field is a direction. |
offsetInSource | Offset in source. |
packingScheme | Packing scheme. |
preprocessor | If not empty, add a preprocessor #if / #endif with the string provided around the generated hlsl code |
range | Minimum and Maximum value. |
sRGBDisplay | True if the field is an sRGB value. |
sizeInBits | Size in bits. |