Struct HlslInput | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct HlslInput

    Representation for an HLSL function input parameter

    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public struct HlslInput

    Fields

    name

    The name of this HLSL function input parameter

    Declaration
    public string name
    Field Value
    Type Description
    String

    Properties

    float2Value

    Returns the HLSL float2 value. Sets the HLSL float value and value type to HlslValueType.Float2

    Declaration
    public HlslFloat2 float2Value { get; set; }
    Property Value
    Type Description
    HlslFloat2

    float3Value

    Returns the HLSL float3 value. Sets the HLSL float value and value type to HlslValueType.Float3

    Declaration
    public HlslFloat3 float3Value { get; set; }
    Property Value
    Type Description
    HlslFloat3

    float4Value

    Returns the HLSL float4 value. Sets the HLSL float value and value type to HlslValueType.Float4

    Declaration
    public HlslFloat4 float4Value { get; set; }
    Property Value
    Type Description
    HlslFloat4

    floatValue

    Returns the HLSL float value. Sets the HLSL float value and value type to HlslValueType.Float

    Declaration
    public HlslFloat floatValue { get; set; }
    Property Value
    Type Description
    HlslFloat

    valueType

    Returns the value type for the variable this HlslInput represents

    Declaration
    public HlslValueType valueType { get; }
    Property Value
    Type Description
    HlslValueType

    Methods

    GetDefaultValueString()

    Returns the formatted HLSL string for the default value declaration for this struct's HlslValueType

    Declaration
    public string GetDefaultValueString()
    Returns
    Type Description
    String

    GetHlslValueTypeString()

    Returns the string representation of the HlslValueType for this struct

    Declaration
    public string GetHlslValueTypeString()
    Returns
    Type Description
    String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023