Class GenerateHLSL
Attribute specifying that HLSL code should be generated.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum)]
public class GenerateHLSL : Attribute
Constructors
| Name | Description |
|---|---|
| GenerateHLSL(PackingRules, bool, bool, bool, int, bool, bool, bool, int, string) | GenerateHLSL attribute constructor. |
Fields
| Name | Description |
|---|---|
| constantRegister | If specified, when generating a constant buffer, use this explicit register. |
| containsPackedFields | Structure contains packed fields. |
| generateCBuffer | Generate constant buffer declaration or not. |
| needAccessors | Structure needs generated accessors. |
| needParamDebug | Structure needs generated debug defines and functions. |
| needSetters | Structure needs generated setters. |
| omitStructDeclaration | Generate structure declaration or not. |
| packingRules | Packing rules for the struct. |
| paramDefinesStart | Start value of generated defines. |
| sourcePath | Path of the generated file |