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 |
---|---|
Generate |
GenerateHLSL attribute constructor. |
Fields
Name | Description |
---|---|
constant |
If specified, when generating a constant buffer, use this explicit register. |
contains |
Structure contains packed fields. |
generate |
Generate constant buffer declaration or not. |
need |
Structure needs generated accessors. |
need |
Structure needs generated debug defines and functions. |
need |
Structure needs generated setters. |
omit |
Generate structure declaration or not. |
packing |
Packing rules for the struct. |
param |
Start value of generated defines. |
source |
Path of the generated file |