docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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)

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)