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 |
---|---|
System.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 |
---|---|
System.String |
GetHlslValueTypeString()
Returns the string representation of the HlslValueType for this struct
Declaration
public string GetHlslValueTypeString()
Returns
Type | Description |
---|---|
System.String |