feat(gx): add buffer handling to d3d backend

This commit is contained in:
fallenoak 2023-03-07 22:48:57 -06:00 committed by GitHub
parent 45eecdc66f
commit 84cc5e998f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 152 additions and 0 deletions

View file

@ -229,14 +229,21 @@ class CGxDeviceD3d : public CGxDevice {
virtual void CapsWindowSize(CRect& dst);
virtual void CapsWindowSizeInScreenCoords(CRect& dst);
virtual void PoolSizeSet(CGxPool* pool, uint32_t size);
virtual char* BufLock(CGxBuf* buf);
virtual int32_t BufUnlock(CGxBuf* buf, uint32_t size);
virtual void IShaderCreate(CGxShader* shader);
virtual int32_t StereoEnabled();
// Member functions
CGxDeviceD3d();
int32_t CreatePoolAPI(CGxPool* pool);
void DsSet(EDeviceState state, uint32_t val);
char* IBufLock(CGxBuf* buf);
void IBufUnlock(CGxBuf* buf);
int32_t ICreateD3d();
int32_t ICreateD3dDevice(const CGxFormat& format);
LPDIRECT3DINDEXBUFFER9 ICreateD3dIB(EGxPoolUsage usage, uint32_t size);
LPDIRECT3DVERTEXBUFFER9 ICreateD3dVB(EGxPoolUsage usage, uint32_t size);
bool ICreateWindow(CGxFormat& format);
void ISetPresentParms(D3DPRESENT_PARAMETERS& d3dpp, const CGxFormat& format);
void IDestroyD3d();