MfxAttribute#

struct MfxAttribute : public MfxBase#

An attribute is part of a mesh, it is an information attached to either each point, each corner, each face or only once for the whole mesh. See MfxMesh::GetAttribute to get attribute objects.

Public Functions

void FetchProperties(MfxAttributeProps &props) const#

Populate the provided props structure with this attribute’s properties

void SetProperties(const MfxAttributeProps &props)#

Set attribute properties according to provided props structure

void CopyFrom(const MfxAttribute &other, int start, int count)#

Copy attribute data, casting if necessary

void ForwardFrom(const MfxAttribute &other)#

Forward attribute data, pointing to existing buffers instead of copying. Note that the buffer in source attribute must already be allocated.

Public Static Functions

MfxAttributeType attributeTypeAsEnum(const char *mfxType)#

Convert a type string from MeshEffect API to its local enum counterpart

const char *attributeTypeAsString(MfxAttributeType type)#

Convert local typestring enum to a type string from MeshEffect API

MfxAttributeAttachment attributeAttachmentAsEnum(const char *mfxAttachment)#

Convert an attachment string from MeshEffect API to its local enum counterpart

const char *attributeAttachmentAsString(MfxAttributeAttachment attachment)#

Convert local attachment enum to an attachment string from MeshEffect API

MfxAttributeSemantic attributeSemanticAsEnum(const char *mfxSemantic)#

Convert a semantic string from MeshEffect API to its local enum counterpart

const char *attributeSemanticAsString(MfxAttributeSemantic semantic)#

Convert local semantic enum to a semantic string from MeshEffect API

enum MfxAttributeType#

Values:

enumerator MFX_UNKNOWN_ATTR#
enumerator MFX_UBYTE_ATTR#
enumerator MFX_INT_ATTR#
enumerator MFX_FLOAT_ATTR#
enumerator Unknown#
enumerator UByte#
enumerator Int#
enumerator Float#
enum MfxAttributeAttachment#

Values:

enumerator Point#
enumerator Corner#
enumerator Face#
enumerator Mesh#
enum MfxAttributeSemantic#

Values:

enumerator None#
enumerator TextureCoordinate#
enumerator Normal#
enumerator Color#
enumerator Weight#