Holds information about a stream output slot. More...
Public Member Functions | |
StreamOutputDescriptor () noexcept | |
unsigned int | getStream () const |
nkMemory::StringView | getSemanticName () const |
unsigned int | getSemanticIndex () const |
unsigned char | getStartComponent () const |
unsigned char | getComponentCount () const |
unsigned char | getOutputSlot () const |
void | setStream (unsigned int value) |
void | setSemanticName (const nkMemory::StringView &value) |
void | setSemanticIndex (unsigned int value) |
void | setStartComponent (unsigned char value) |
void | setComponentCount (unsigned char value) |
void | setOutputSlot (unsigned char value) |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
virtual void | importClassFromTree (nkExport::Node *rootNode) override |
Public Member Functions inherited from nkExport::Exportable | |
Exportable () noexcept | |
virtual | ~Exportable () |
Holds information about a stream output slot.
This is used when describing a geometry stream.
|
noexcept |
Constructor.
unsigned int nkGraphics::StreamOutputDescriptor::getStream | ( | ) | const |
nkMemory::StringView nkGraphics::StreamOutputDescriptor::getSemanticName | ( | ) | const |
unsigned int nkGraphics::StreamOutputDescriptor::getSemanticIndex | ( | ) | const |
unsigned char nkGraphics::StreamOutputDescriptor::getStartComponent | ( | ) | const |
unsigned char nkGraphics::StreamOutputDescriptor::getComponentCount | ( | ) | const |
unsigned char nkGraphics::StreamOutputDescriptor::getOutputSlot | ( | ) | const |
void nkGraphics::StreamOutputDescriptor::setStream | ( | unsigned int | value | ) |
Sets the stream number.
value | The stream number to use. |
void nkGraphics::StreamOutputDescriptor::setSemanticName | ( | const nkMemory::StringView & | value | ) |
Sets the semantic name to output.
value | The name of the semantic. |
void nkGraphics::StreamOutputDescriptor::setSemanticIndex | ( | unsigned int | value | ) |
Sets the semantic index to output.
value | The index needed. |
void nkGraphics::StreamOutputDescriptor::setStartComponent | ( | unsigned char | value | ) |
Sets the starting component to write to the output.
value | The component index to start with. Between [0, 3]. |
void nkGraphics::StreamOutputDescriptor::setComponentCount | ( | unsigned char | value | ) |
Sets the component count to write to the output.
value | The count to use. |
void nkGraphics::StreamOutputDescriptor::setOutputSlot | ( | unsigned char | value | ) |
Sets the output slot from the stream to write.
value | The output slot. Between [0, 3]. |
|
overridevirtual |
Basic exporting capabilities.
rootNode | The tree to export to. |
Implements nkExport::Exportable.
|
overridevirtual |
Basic importing capabilities.
rootNode | The tree to import from. |
Implements nkExport::Exportable.