Class SurfaceDataAttributes
Attribute specifying the parameters of a surface data field.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class SurfaceDataAttributes : Attribute
Constructors
Name | Description |
---|---|
SurfaceDataAttributes(string, bool, bool, FieldPrecision, bool, string) | SurfaceDataAttributes constructor. |
SurfaceDataAttributes(string[], bool, bool, FieldPrecision, bool, string) | SurfaceDataAttributes constructor. |
Fields
Name | Description |
---|---|
checkIsNormalized | Field is a normalized vector. |
displayNames | Display names overrides for the field. |
isDirection | True if the field is a direction. |
precision | Field precision. |
preprocessor | If not empty, add a preprocessor #if / #endif with the string provided around the generated hlsl code |
sRGBDisplay | True if the field is an sRGB value. |