class
ShaderEvaluationFunctionTable
ShaderEvaluationFunctionTable keeps information on shader parameter used while setting up compute casting using the material evaluation shader.
Properties
Property | Description |
Name | The name of the ShaderEvaluationFunctionTable object. (Inherited from Object) |
Methods
Method | Description |
AddItem | Adds an item to the table. The returned value is the id of the item within the table, which can be used to retrieve the item using GetItem(). (Inherited from Table) |
AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
AddShaderEvaluationFunction | Adds details about the evaluation function to the table. The returned value of the shader evaluation function details |
Clear | Clears the table, and removes all items. If AddItem is called after Clear, the item ids will start over from 0. (Inherited from Table) |
Copy | Clears the current table and copies the items from a source table. (Inherited from Table) |
FindItem | Finds a named item in the table. If multiple items have the same name, the first will be returned. If no item was found, null will be returned. (Inherited from Table) |
FindItemId | Finds the id of an item in the table, using the name. If multiple items have the same name, the first will be returned. If no item was found, the return will be -1. (Inherited from Table) |
FindShaderEvaluationFunction | Finds a shader evaluation function in the table, using the shader evaluation function name. Note names are unique |
FindShaderEvaluationFunctionId | Finds the id of a shader evaluation function in the table, using the shader evaluation function name. Note parameter shader evaluation function are unique. |
GetClass | Get the name of the ShaderEvaluationFunctionTable class. (Inherited from Object) |
GetItem | Returns the i:th item, using the id of the item. (Inherited from Table) |
GetItemsCount | The number of item id:s in the table. If an item has been removed, using RemoveItem, the id is still counted in this method. GetIdsCount also equals the id that will be applied to the next item added to the table. (Inherited from Table) |
GetShaderEvaluationFunction | Returns the i:th shader evaluation function, using the id of the shader evaluation function . |
GetShaderEvaluationFunctionsCount | Returns the number of shader evaluation function in the table. |
IsA | Returns true if ShaderEvaluationFunctionTable is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsNull | Returns true if the ShaderEvaluationFunctionTable object is invalid. (Inherited from Object) |
IsSameObjectAs | Returns true if the ShaderEvaluationFunctionTable object is valid. (Inherited from Object) |
NonNull | Returns true if the ShaderEvaluationFunctionTable object is valid. (Inherited from Object) |
PrintInfo | Prints the content/info of the ShaderEvaluationFunctionTable object to the log. (Inherited from Object) |
RemoveItem | Removes an item, and invalidates the id. The id will not point at a valid item, until Clear is called and new items are added up until the id. (Inherited from Table) |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
RemoveShaderEvaluationFunction | Removes a shader evaluation function. If GetShaderEvaluationFunction is called with the shader evaluation function id, the value returned will be null. |
SetItem | Sets an item in the table. The id must exist in the table. (Inherited from Table) |
SetShaderEvaluationFunction | Sets a shader evaluation function in the table. |
Static methods
Method | Description |
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spShaderEvaluationFunctionTable, and if this is the case, returns the object cast into spShaderEvaluationFunctionTable. (Inherited from Object) |
Properties details
Name
The name of the ShaderEvaluationFunctionTable object. (Inherited from Object)
Syntax
SetName parameters
Type | Name | Min | Max | Description |
const char * | name | | | New name of the object. |
GetName return value
Type: spString
Syntax
SetName parameters
Type | Name | Min | Max | Description |
string | name | | | New name of the object. |
GetName return value
Type: string
Syntax
SetName parameters
Name | Type | Min | Max | Description |
name | str | | | New name of the object. |
GetName return value
Type: str
Methods details
AddItem
Adds an item to the table. The returned value is the id of the item within the table, which can be used to retrieve the item using GetItem().
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | item | | | Is the item that is to be added to the table. |
Return value
Type: rid
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | item | | | Is the item that is to be added to the table. |
Return value
Type: int
Syntax
Parameters
Name | Type | Min | Max | Description |
item | Object | | | Is the item that is to be added to the table. |
Return value
Type: int
AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
Observer | observer | | | Observer is the object that will receive events. |
Return value
Type: rid
Syntax
Parameters
Type | Name | Min | Max | Description |
Observer | observer | | | Observer is the object that will receive events. |
Return value
Type: int
Syntax
Parameters
Name | Type | Min | Max | Description |
observer | Observer | | | Observer is the object that will receive events. |
Return value
Type: int
AddShaderEvaluationFunction
Adds details about the evaluation function to the table. The returned value of the shader evaluation function details
Syntax
Parameters
Type | Name | Min | Max | Description |
ShaderEvaluationFunction | evalFunction | | | The shader evaluation function to add into the table. |
Return value
Type: rid
Syntax
Parameters
Type | Name | Min | Max | Description |
ShaderEvaluationFunction | evalFunction | | | The shader evaluation function to add into the table. |
Return value
Type: int
Syntax
Parameters
Name | Type | Min | Max | Description |
evalFunction | ShaderEvaluationFunction | | | The shader evaluation function to add into the table. |
Return value
Type: int
Clear
Clears the table, and removes all items. If AddItem is called after Clear, the item ids will start over from 0.
Syntax
Parameters
Clear takes no parameters.
Syntax
Parameters
Clear takes no parameters.
Syntax
Parameters
Clear takes no parameters.
Copy
Clears the current table and copies the items from a source table.
Syntax
Parameters
Type | Name | Min | Max | Description |
Table | src | | | The table to copy. |
Syntax
Parameters
Type | Name | Min | Max | Description |
Table | src | | | The table to copy. |
Syntax
Parameters
Name | Type | Min | Max | Description |
src | Table | | | The table to copy. |
FindItem
Finds a named item in the table. If multiple items have the same name, the first will be returned. If no item was found, null will be returned.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | Is the string that is to be searched for. |
Return value
Type: Object
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | Is the string that is to be searched for. |
Return value
Type: Object
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | Is the string that is to be searched for. |
Return value
Type: Object
FindItemId
Finds the id of an item in the table, using the name. If multiple items have the same name, the first will be returned. If no item was found, the return will be -1.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | Is the string that is to be searched for. |
Return value
Type: rid
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | Is the string that is to be searched for. |
Return value
Type: int
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | Is the string that is to be searched for. |
Return value
Type: int
FindShaderEvaluationFunction
Finds a shader evaluation function in the table, using the shader evaluation function name. Note names are unique
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The shader evaluation function name to look for. |
Return value
Type: ShaderEvaluationFunction
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The shader evaluation function name to look for. |
Return value
Type: ShaderEvaluationFunction
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The shader evaluation function name to look for. |
Return value
Type: ShaderEvaluationFunction
FindShaderEvaluationFunctionId
Finds the id of a shader evaluation function in the table, using the shader evaluation function name. Note parameter shader evaluation function are unique.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The shader evaluation function name to look for. |
Return value
Type: rid
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The shader evaluation function name to look for. |
Return value
Type: int
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The shader evaluation function name to look for. |
Return value
Type: int
GetClass
Get the name of the ShaderEvaluationFunctionTable class. (Inherited from Object)
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: spString
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: string
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: str
GetItem
Returns the i:th item, using the id of the item.
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | Is the id of the requested object. |
Return value
Type: Object
Syntax
Parameters
Type | Name | Min | Max | Description |
int | id | | | Is the id of the requested object. |
Return value
Type: Object
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | Is the id of the requested object. |
Return value
Type: Object
GetItemsCount
The number of item id:s in the table. If an item has been removed, using RemoveItem, the id is still counted in this method. GetIdsCount also equals the id that will be applied to the next item added to the table.
Syntax
Parameters
GetItemsCount takes no parameters.
Return value
Type: unsigned int
Syntax
Parameters
GetItemsCount takes no parameters.
Return value
Type: uint
Syntax
Parameters
GetItemsCount takes no parameters.
Return value
Type: int
GetShaderEvaluationFunction
Returns the i:th shader evaluation function, using the id of the shader evaluation function .
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | The id of the shader evaluation function parameter in the table. |
Return value
Type: ShaderEvaluationFunction
Syntax
Parameters
Type | Name | Min | Max | Description |
int | id | | | The id of the shader evaluation function parameter in the table. |
Return value
Type: ShaderEvaluationFunction
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The id of the shader evaluation function parameter in the table. |
Return value
Type: ShaderEvaluationFunction
GetShaderEvaluationFunctionsCount
Returns the number of shader evaluation function in the table.
Syntax
Parameters
GetShaderEvaluationFunctionsCount takes no parameters.
Return value
Type: unsigned int
Syntax
Parameters
GetShaderEvaluationFunctionsCount takes no parameters.
Return value
Type: uint
Syntax
Parameters
GetShaderEvaluationFunctionsCount takes no parameters.
Return value
Type: int
IsA
Returns true if ShaderEvaluationFunctionTable is a or is a descendant of the class named as the type parameter. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if ShaderEvaluationFunctionTable is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if ShaderEvaluationFunctionTable is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if ShaderEvaluationFunctionTable is, or is a descendant of. |
Return value
Type: bool
IsNull
Returns true if the ShaderEvaluationFunctionTable object is invalid. (Inherited from Object)
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
IsSameObjectAs
Returns true if the ShaderEvaluationFunctionTable object is valid. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to compare with. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to compare with. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
object | Object | | | Object to compare with. |
Return value
Type: bool
NonNull
Returns true if the ShaderEvaluationFunctionTable object is valid. (Inherited from Object)
Syntax
Parameters
NonNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
NonNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
NonNull takes no parameters.
Return value
Type: bool
PrintInfo
Prints the content/info of the ShaderEvaluationFunctionTable object to the log. (Inherited from Object)
Syntax
Parameters
PrintInfo takes no parameters.
Syntax
Parameters
PrintInfo takes no parameters.
Syntax
Parameters
PrintInfo takes no parameters.
RemoveItem
Removes an item, and invalidates the id. The id will not point at a valid item, until Clear is called and new items are added up until the id.
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | The id of the object that should be removed. |
Syntax
Parameters
Type | Name | Min | Max | Description |
int | id | | | The id of the object that should be removed. |
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The id of the object that should be removed. |
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | observerId | | | ObserverId is the id returned by AddObserver when the observer was added. |
Syntax
Parameters
Type | Name | Min | Max | Description |
int | observerId | | | ObserverId is the id returned by AddObserver when the observer was added. |
Syntax
Parameters
Name | Type | Min | Max | Description |
observerId | int | | | ObserverId is the id returned by AddObserver when the observer was added. |
RemoveShaderEvaluationFunction
Removes a shader evaluation function. If GetShaderEvaluationFunction is called with the shader evaluation function id, the value returned will be null.
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | The id of the shader evaluation function in the table. |
Syntax
Parameters
Type | Name | Min | Max | Description |
int | id | | | The id of the shader evaluation function in the table. |
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The id of the shader evaluation function in the table. |
SetItem
Sets an item in the table. The id must exist in the table.
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | Is the id that is to be set. |
Object | item | | | Is the object set to the id. |
Syntax
Parameters
Type | Name | Min | Max | Description |
int | id | | | Is the id that is to be set. |
Object | item | | | Is the object set to the id. |
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | Is the id that is to be set. |
item | Object | | | Is the object set to the id. |
SetShaderEvaluationFunction
Sets a shader evaluation function in the table.
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | The id of the shader evaluation function in the table. |
ShaderEvaluationFunction | evalFunction | | | The shader evaluation function to set into the table. |
Syntax
Parameters
Type | Name | Min | Max | Description |
int | id | | | The id of the shader evaluation function in the table. |
ShaderEvaluationFunction | evalFunction | | | The shader evaluation function to set into the table. |
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The id of the shader evaluation function in the table. |
evalFunction | ShaderEvaluationFunction | | | The shader evaluation function to set into the table. |
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spShaderEvaluationFunctionTable, and if this is the case, returns the object cast into spShaderEvaluationFunctionTable. (Inherited from Object)