#include <fbxsemanticentryview.h>
FbxSemanticEntryView stores a binding corresponding to a semantic within a shader file.
A shader semantic is a parameter, a constant or an operator. So a shader semantic could bind with FbxProperty ( parameter, constant) and FbxBindingOperator (operator).
Here is a code snippet to show how it used.
lDstView.SetSemantic( lProp.Getname());
- See also
- FbxBindingTableEntry and FbxBindingTable.
- Examples:
- ExportShader/main.cxx.
Definition at line 42 of file fbxsemanticentryview.h.
◆ FbxSemanticEntryView()
Constructor.
- Parameters
-
pEntry | The binding table entry to create the entry view for. |
pAsSource | true to create the entry view as source, false as destination. |
pCreate | true to create the entry view, false otherwise. |
◆ ~FbxSemanticEntryView()
◆ SetSemantic()
void SetSemantic |
( |
const char * |
pSemantic | ) |
|
Set the semantic to the binding entry.
- Parameters
-
pSemantic | The semantic string to set. |
◆ GetSemantic()
FbxString GetSemantic |
( |
bool |
pAppendIndex = true | ) |
const |
Get the semantic from the binding entry.
- Parameters
-
pAppendIndex | true if the returned semantic append a index, false otherwise. |
- Returns
- The semantic.
◆ GetIndex()
Get the semantic index suffix.
- Returns
- Semantic index suffix.
◆ EntryType()
virtual const char* EntryType |
( |
| ) |
const |
|
virtual |
Get the entry type.
- Returns
- Entry type as string "FbxSemanticEntry".
Reimplemented from FbxEntryView.
◆ sEntryType
Name of the entry type used in the binding entry.
It should be "FbxSemanticEntry" in this case.
Definition at line 49 of file fbxsemanticentryview.h.
The documentation for this class was generated from the following file: