From 5a623c18d0050714fd4da65eef8d91e9e2376c93 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 3 Sep 2025 13:07:19 -0400 Subject: [PATCH] Add xgfxpixelshaderloaddef structures --- libs/xassets/xgfxpixelshaderloaddef.cpp | 33 ++++++++++++++++++++++++ libs/xassets/xgfxpixelshaderloaddef.h | 34 +++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 libs/xassets/xgfxpixelshaderloaddef.cpp create mode 100644 libs/xassets/xgfxpixelshaderloaddef.h diff --git a/libs/xassets/xgfxpixelshaderloaddef.cpp b/libs/xassets/xgfxpixelshaderloaddef.cpp new file mode 100644 index 0000000..84b1676 --- /dev/null +++ b/libs/xassets/xgfxpixelshaderloaddef.cpp @@ -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; +} diff --git a/libs/xassets/xgfxpixelshaderloaddef.h b/libs/xassets/xgfxpixelshaderloaddef.h new file mode 100644 index 0000000..85547b1 --- /dev/null +++ b/libs/xassets/xgfxpixelshaderloaddef.h @@ -0,0 +1,34 @@ +#ifndef XGFXPIXELSHADERLOADDEF_H +#define XGFXPIXELSHADERLOADDEF_H + +#include "xasset.h" + +#include + +class XGfxPixelShaderLoadDef : public XAsset +{ +public: + explicit XGfxPixelShaderLoadDef(); + ~XGfxPixelShaderLoadDef(); + + void ParseData(QDataStream *aStream) override; + void Clear() override; + +private: + quint16 mCachedPartPtr; + QVector mCachedPart; + quint16 mPhysicalPartPtr; + QVector mPhysicalPart; + quint16 mCachedPartSize; + quint16 mPhysicalPartSize; +}; + +#endif // XGFXPIXELSHADERLOADDEF_H + + + + + + + +