Constructor GenerateHLSL
GenerateHLSL(PackingRules, bool, bool, bool, int, bool, bool, bool, int, string)
GenerateHLSL attribute constructor.
Declaration
public GenerateHLSL(PackingRules rules = PackingRules.Exact, bool needAccessors = true, bool needSetters = false, bool needParamDebug = false, int paramDefinesStart = 1, bool omitStructDeclaration = false, bool containsPackedFields = false, bool generateCBuffer = false, int constantRegister = -1, string sourcePath = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PackingRules | rules | Packing rules. |
| bool | needAccessors | Need accessors. |
| bool | needSetters | Need setters. |
| bool | needParamDebug | Need debug defines. |
| int | paramDefinesStart | Start value of debug defines. |
| bool | omitStructDeclaration | Omit structure declaration. |
| bool | containsPackedFields | Contains packed fields. |
| bool | generateCBuffer | Generate a constant buffer. |
| int | constantRegister | When generating a constant buffer, specify the optional constant register. |
| string | sourcePath | Location of the source file defining the C# type. (Automatically filled by compiler) |