Add xgfxpixelshaderloaddef structures

This commit is contained in:
Nicholas Johnson 2025-09-03 13:07:19 -04:00
parent 63ca1074fc
commit 5a623c18d0
2 changed files with 67 additions and 0 deletions

View 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;
}

View 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