Add xgfxpixelshaderloaddef structures
This commit is contained in:
parent
63ca1074fc
commit
5a623c18d0
33
libs/xassets/xgfxpixelshaderloaddef.cpp
Normal file
33
libs/xassets/xgfxpixelshaderloaddef.cpp
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#include "xgfxpixelshaderloaddef.h"
|
||||||
|
|
||||||
|
XGfxPixelShaderLoadDef::XGfxPixelShaderLoadDef()
|
||||||
|
: XAsset()
|
||||||
|
, mCachedPartPtr(0)
|
||||||
|
, mCachedPart()
|
||||||
|
, mPhysicalPartPtr(0)
|
||||||
|
, mPhysicalPart()
|
||||||
|
, mCachedPartSize(0)
|
||||||
|
, mPhysicalPartSize(0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
XGfxPixelShaderLoadDef::~XGfxPixelShaderLoadDef()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void XGfxPixelShaderLoadDef::ParseData(QDataStream *aStream)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void XGfxPixelShaderLoadDef::Clear()
|
||||||
|
{
|
||||||
|
mCachedPartPtr = 0;
|
||||||
|
mCachedPart.clear();
|
||||||
|
mPhysicalPartPtr = 0;
|
||||||
|
mPhysicalPart.clear();
|
||||||
|
mCachedPartSize = 0;
|
||||||
|
mPhysicalPartSize = 0;
|
||||||
|
}
|
||||||
34
libs/xassets/xgfxpixelshaderloaddef.h
Normal file
34
libs/xassets/xgfxpixelshaderloaddef.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#ifndef XGFXPIXELSHADERLOADDEF_H
|
||||||
|
#define XGFXPIXELSHADERLOADDEF_H
|
||||||
|
|
||||||
|
#include "xasset.h"
|
||||||
|
|
||||||
|
#include <QVector>
|
||||||
|
|
||||||
|
class XGfxPixelShaderLoadDef : public XAsset
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
explicit XGfxPixelShaderLoadDef();
|
||||||
|
~XGfxPixelShaderLoadDef();
|
||||||
|
|
||||||
|
void ParseData(QDataStream *aStream) override;
|
||||||
|
void Clear() override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
quint16 mCachedPartPtr;
|
||||||
|
QVector<quint8> mCachedPart;
|
||||||
|
quint16 mPhysicalPartPtr;
|
||||||
|
QVector<quint8> mPhysicalPart;
|
||||||
|
quint16 mCachedPartSize;
|
||||||
|
quint16 mPhysicalPartSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // XGFXPIXELSHADERLOADDEF_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user