Jump to content
  • Advertisement
Sign in to follow this  
Sdfsdf Sdfsdf

dx8 change dx9 problem help DeletePixelShader,SetVertexShaderConstant ....

This topic is 2104 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm making the transition from DX8, DX9.
 
Thank you in advance.

 
--------------------Configuration: Exe_LithTech - Win32 Debug--------------------
Compiling...
d3ddrawprim.cpp
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(131) : error C2039: 'DeleteStateBlock' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(147) : error C2039: 'GetInfo' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(165) : error C2039: 'DeleteVertexShader' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(166) : error C2039: 'SetVertexShaderConstant' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(167) : error C2039: 'GetVertexShaderConstant' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(168) : error C2039: 'GetVertexShaderDeclaration' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(169) : error C2039: 'GetVertexShaderFunction' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(177) : error C2039: 'DeletePixelShader' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(178) : error C2039: 'SetPixelShaderConstant' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(179) : error C2039: 'GetPixelShaderConstant' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(180) : error C2039: 'GetPixelShaderFunction' : is not a member of 'IDirect3DDevice9'
        C:\DX9SDK\Include\d3d9.h(318) : see declaration of 'IDirect3DDevice9'
..\..\render_a\src\sys\d3d\d3d_device_wrapper.h(193) : error C2065: 'D3DRS_SOFTWAREVERTEXPROCESSING' : undeclared identifier
DX8:     HRESULT DeleteStateBlock(DWORD Token) { return m_pDevice->DeleteStateBlock(Token); }
DX9:     ????
DX8:    HRESULT GetInfo(DWORD DevInfoID,void* pDevInfoStruct,DWORD DevInfoStructSize) { return m_pDevice->GetInfo(DevInfoID,pDevInfoStruct,DevInfoStructSize); }
DX9:     ????
DX8:    HRESULT DeleteVertexShader(DWORD Handle) { return m_pDevice->DeleteVertexShader(Handle); }
DX9: ???
DX8:    HRESULT SetVertexShaderConstant(DWORD Register,CONST void* pConstantData,DWORD ConstantCount) { return m_pDevice->SetVertexShaderConstant(Register,pConstantData,ConstantCount); }
DX9: ???
DX8:    HRESULT GetVertexShaderConstant(DWORD Register,void* pConstantData,DWORD ConstantCount) { return m_pDevice->GetVertexShaderConstant(Register,pConstantData,ConstantCount); }
DX9: ???
DX8:    HRESULT GetVertexShaderDeclaration(DWORD Handle,void* pData,DWORD* pSizeOfData) { return m_pDevice->GetVertexShaderDeclaration(Handle,pData,pSizeOfData); }
DX9: ???
DX8:    HRESULT GetVertexShaderFunction(DWORD Handle,void* pData,DWORD* pSizeOfData) { return m_pDevice->GetVertexShaderFunction(Handle,pData,pSizeOfData); }
DX9: ???
DX8:    HRESULT DeletePixelShader(DWORD Handle) { return m_pDevice->DeletePixelShader(Handle); }
DX9: ???
DX8:   HRESULT SetPixelShaderConstant(DWORD Register,CONST void* pConstantData,DWORD ConstantCount) { return m_pDevice->SetPixelShaderConstant(Register,pConstantData,ConstantCount); }
DX9: ???
DX8:    HRESULT GetPixelShaderConstant(DWORD Register,void* pConstantData,DWORD ConstantCount) { return m_pDevice->GetPixelShaderConstant(Register,pConstantData,ConstantCount); }
DX9: ???
DX8:    HRESULT GetPixelShaderFunction(DWORD Handle,void* pData,DWORD* pSizeOfData) { return m_pDevice->GetPixelShaderFunction(Handle,pData,pSizeOfData); }
DX9:     ????DX8: void FlushCriticalStates()
{
FlushState((uint32)D3DRS_SOFTWAREVERTEXPROCESSING); 
FlushState((uint32)D3DRS_LIGHTING); 
}
DX9: ???
Edited by Lord4566

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!