directx – DeleteVertexShader dx8.1 to dx9 conversion
i am currently trying to convert a game to use dx9 instead of dx8. I would say that i’m quite close to completing it, but I have a few errors that I don’t exactly know how to deal with atm.
DeleteVertexShader
andDeletePixelShader
do not exist anymore in directx 9. What do I do with those? I could not find any equivalent to them in dx9 so far.
Old code example:
D3D_CHECKERROR(hr); hr = _pGfx->gl_pd3dDevice->DeletePixelShader(ulHandle);
-
Render state
D3DRS_PATCHSEGMENTS
does not exist anymore, it was used for the number of segments per edge when drawing patches. Do I need to replace it with something? I could not find any equivalent for this either.
Code example:HRESULT hr = _pGfx->gl_pd3dDevice->SetRenderState( D3DRS_PATCHSEGMENTS, *((DWORD*)&fSegments));
These two issues are the ones I have the most struggles with atm, so any help would be appreciated.
Thanks in advance!
Read more here: Source link