2025-09-05 21:35:57 +00:00
|
|
|
#ifndef XTEXTUREDESC_H
|
|
|
|
|
#define XTEXTUREDESC_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xd3denums.h"
|
|
|
|
|
|
|
|
|
|
class XTextureDesc : public XAsset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit XTextureDesc();
|
|
|
|
|
~XTextureDesc();
|
|
|
|
|
|
|
|
|
|
void Clear() override;
|
2025-09-10 21:58:26 -04:00
|
|
|
void ParseData(XDataStream *aStream) override;
|
2025-09-05 21:35:57 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
XD3DResourceType mResourceType;
|
2025-09-10 21:58:26 -04:00
|
|
|
quint32 mWidth;
|
|
|
|
|
quint32 mHeight;
|
|
|
|
|
quint32 mDepth;
|
2025-09-05 21:35:57 +00:00
|
|
|
XD3DFormat mFormat;
|
2025-09-10 21:58:26 -04:00
|
|
|
quint32 mRowPitch;
|
|
|
|
|
quint32 mSlicePitch;
|
|
|
|
|
quint32 mBitsPerPixel;
|
|
|
|
|
quint32 mWidthInBlocks;
|
|
|
|
|
quint32 mHeightInBlocks;
|
|
|
|
|
quint32 mDepthInBlocks;
|
|
|
|
|
quint32 mBytesPerBlock;
|
2025-09-05 21:35:57 +00:00
|
|
|
int mExpBias;
|
2025-09-10 21:58:26 -04:00
|
|
|
quint32 mFlags;
|
2025-09-05 21:35:57 +00:00
|
|
|
XD3DMultiSampleType mMultiSampleType;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XTEXTUREDESC_H
|