Why creation of VertexShader fails in my application!
The most probable reason maybe that the device created by your application is using hardware vertex processing, but the display adaptor or driver does not support the programmable vertex shader execution in hardware, or does not implement the version of vertex shader code required by your shader.Check if your 3D card is DirectX9 Compliant and even if it is not fully compliant check whether it at least support VS_1.0 (Vertex Shader 1.0).
When evaluating devices that use hardware vertex processing check for vertex shader support. If you are using the D3DApp framework, then for a vertex shader1.0 support add the following to the ConfirmDevice ()
if( (dwBehavior & D3DCREATE_HARDWARE_VERTEXPROCESSING ) ||
(dwBehavior & D3DCREATE_MIXED_VERTEXPROCESSING ) )
{
if( pCaps->VertexShaderVersion < D3DVS_VERSION(1,0) )
return E_FAIL;
}
If your device is using software vertex processing then there is no need to perform this check as shader support is guaranteed through emulation (However it maybe damn slow!)
FAQ Menu
Sponsored links
Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
SSH and SFTP support for .NET
Add complete SSH and SFTP support to your .NET framework application
Add complete SSH and SFTP support to your .NET framework application
ASP.NET 3.5 Hosting on Windows 2008!
ASP.NET 3.5/2.0 Hosting on Windows 2008 & 2003! AJAX, LINQ, & Silverlight Ready! 3 Mo. Free!!
ASP.NET 3.5/2.0 Hosting on Windows 2008 & 2003! AJAX, LINQ, & Silverlight Ready! 3 Mo. Free!!
