Ok, I'm trying to use vertex shader, but I have some problem...
Here's the code I'm using (note that the shader doesn't really do anything... it just expects the world*view*projection matrix in c0->c4 and then passes the data through as it is):
const char VertexShader =
"m4x4 oPos, v0, c0
"mov oT0, v7";
DWORD declaration =
if (FAILED(D3DXAssembleShader(VertexShader, lstrlen(VertexShader), D3DXASM_DEBUG, NULL, &VertexShaderBuffer, NULL)))
if (FAILED(D3DDevice->CreateVertexShader(declaration, (DWORD*)VertexShaderBuffer->GetBufferPointer(), &VertexShaderHandle, 0)))
The problem is with CreateVertexShader that returns D3DERR_INVALIDCALL.
I don't really understand where's the error, so I hope that someone out there can find it for me!!! ;-)
[italic]How beautiful, if sorrow had not made Sorrow more beautiful than Beauty itself.[/italic]