Interface IFxParamDeclaration
A parameter declaration contains the name and type of the shader parameter, as well as a flag, that indicates in which types of shaders this parameter is used.
Namespace: Fusee.Engine.Core.Effects
Assembly: Fusee.Engine.Core.dll
Syntax
public interface IFxParamDeclaration
Properties
Hash
Hash code of the Name, set in the Setter of "Name".
Declaration
int Hash { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
The name of the parameter. Must be unique in the used Effect.
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParamType
The Type of the parameter.
Declaration
Type ParamType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
GetValue()
Gets the value of this parameter declaration. Implementations should provide a type check using ParamType.
Declaration
object GetValue()
Returns
Type | Description |
---|---|
System.Object |
SetValue(Object)
Sets the value of this parameter declaration. Implementations should provide a type check using ParamType.
Declaration
bool SetValue(object val)
Parameters
Type | Name | Description |
---|---|---|
System.Object | val |
Returns
Type | Description |
---|---|
System.Boolean |