   IDirect3DDevice9::CreateVertexShader return D3DERR_INVALIDCALL(8876086C) why?
  hi,everybody!this is my first shader programe,it draws a cylinderhere is the shader code:vs.1.1//------------------------------------------------------------------------------//  Constants Registers:////    c0-c3 = combined model-view-projection matrix////  Input Registers:////    v0    = per-vertex position//    v1    = per-vertex color////  Output Registers:////    oPos  = homogeneous position//    oD0   = diffuse color////------------------------------------------------------------------------------dcl_position v0dcl_color    v1m4x4 oPos, v0, c0   // Transform the per-vertex position into clip-spacemov oD0, v1    // Use the original per-vertex color specifiedi am using sdk october updatethis could run correctly on computer in my officebut on my own computer,when excuting IDirect3DDevice9::CreateVertexShader,it returns D3DERR_INVALIDCALL(8876086C).i don't know why,because my own computer could run sdk sample "VertexShader" and "Vertex Blend" samples correctly.anybody know why?thanks![Edited by - jerrykeating on December 10, 2005 3:15:26 AM]
  You might get that error if your home computer doesn't support shaders with hardware vertex processing.1. The best thing to do is use the DEBUG Direct3D runtime (see the FAQ of this forum for information on how to do that) - that will tell you why the error was returned in the output of your debugger.2. If your home machine has the debug D3D runtime and your work machine has the retail D3D runtime, then it could be because the debug D3D runtime is much stricter about checking function parameters and usage of the D3D API than the retail D3D runtime. Sometimes, faulty code will seem to work on some hardware using the retail D3D runtime simply because not all problems are being checked for - if there is an error with the debug runtime though, then there is a problem that needs fixing.   ;  my home machine doesn't support hardware vertex shader,when i try software_vertex_processing it works!i also learned about debug d3d runtime,thanks!   