feat(gx): handle texture creation in d3d backend

This commit is contained in:
fallenoak 2023-03-07 00:03:03 -06:00 committed by GitHub
parent a490cc7be7
commit 0419802663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 147 additions and 1 deletions

View file

@ -10,6 +10,9 @@ class CGxDeviceD3d : public CGxDevice {
public:
// Static variables
static D3DFORMAT s_GxFormatToD3dFormat[];
static D3DFORMAT s_GxTexFmtToD3dFmt[];
static EGxTexFormat s_GxTexFmtToUse[];
static EGxTexFormat s_tolerableTexFmtMapping[];
// Static functions
static int32_t ILoadD3dLib(HINSTANCE& d3dLib, LPDIRECT3D9& d3d);
@ -46,6 +49,8 @@ class CGxDeviceD3d : public CGxDevice {
void ISetPresentParms(D3DPRESENT_PARAMETERS& d3dpp, const CGxFormat& format);
void IDestroyD3d();
void IDestroyD3dDevice();
void ITexCreate(CGxTex* texId);
void ITexUpload(CGxTex* texId);
};
#endif