Struct FxParamDeclaration<T>
A data type for the list of (uniform) parameters possibly occurring in one of the shaders in the various passes. Each of this array entry consists of the parameter's name and its initial value. The concrete type of the object also indicates the parameter's type.
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fusee.Engine.Core.Effects
Assembly: Fusee.Engine.Core.dll
Syntax
public struct FxParamDeclaration<T> : IFxParamDeclaration
Type Parameters
Name | Description |
---|---|
T |
Fields
Value
The value of the parameter.
Declaration
public T Value
Field Value
Type | Description |
---|---|
T |
Properties
Hash
Hash code of the Name.
Declaration
public int Hash { readonly get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
The name of the parameter. Must be unique in the used Effect.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParamType
The type of the parameter.
Declaration
public readonly Type ParamType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
GetValue()
Gets the value of this parameter declaration.
Declaration
public object GetValue()
Returns
Type | Description |
---|---|
System.Object |
SetValue(Object)
Sets the value of this parameter declaration.
Declaration
public bool SetValue(object val)
Parameters
Type | Name | Description |
---|---|---|
System.Object | val | The new parameter value. |
Returns
Type | Description |
---|---|
System.Boolean | Returns false if the new value equals the old one. |