#ifndef XMATERIALTEXTUREDEF_H
#define XMATERIALTEXTUREDEF_H

#include "xasset.h"
#include "xmaterialtexturedefinfo.h"

class XMaterialTextureDef : public XAsset
{
public:
    XMaterialTextureDef();
    ~XMaterialTextureDef();

    quint8 GetSemantic() const;

    virtual void ParseData(XDataStream* aStream) override;
    virtual void Clear() override;

private:
    quint32 mNameHash;
    char mNameStart;
    char mNameEnd;
    quint8 mSamplerState;
    quint8 mSemantic;
    XMaterialTextureDefInfo mDefInfo;
};

#endif // XMATERIALTEXTUREDEF_H
