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

Started by
0 comments, last by Sdfsdf Sdfsdf 10 years, 2 months ago

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: ???
Advertisement

help me

This topic is closed to new replies.

Advertisement