Jump to content
  • Advertisement
Sign in to follow this  
ProgrammerDX

DX9 vertex shader version in Caps doesn't matter?

This topic is 918 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

Hey,

 

I've noticed that even if someone has a VertexShaderVersion of 0.0 as given in the D3DCAPS9 structure, it is still possible to run a 2.0 Vertex Shader in DirectX 9.0c. Why is this?

 

Greetings,

Share this post


Link to post
Share on other sites
Advertisement

Infact even Vertex and Pixel shaders of 3.0 work while D3DCAPS9 specifies 0.0 and 2.0 for Vertex Shader and Pixel Shader respectively.

 

Strange stuff

Share this post


Link to post
Share on other sites

I would be curious as to what hardware this is checking on? Perhaps some defaulting is happening somewhere or incorrect caps are being queried.

Share this post


Link to post
Share on other sites

Code to query caps:

lpD3D->GetDeviceCaps( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &d3dCaps )

 

Video Card: Intel(R) G33/G31 Express Chipset Family

lpD3D->GetAdapterIdentifier( D3DADAPTER_DEFAULT, 0, &d3dAdapterIdentifier ) )

Share this post


Link to post
Share on other sites

It's 0.0 because the card doesn't support hardware vertex shaders. It works by running them in software.

Oh, come on, he is not profiling on a calculator.

 

Deepest vertex shader function compilation on Microsoft is 1.1. Unless he poses a machine without programable shaders....

 

But caps are not very used to check shaders version, you compile- ok, you don't , fall back (after you have device already, issuing a try to compile them)

 

Caps explain memory resources and pixel resolutions and such goodies rather. The shaders compilers are off made, not checked at device creation at all. (In other words, you acquire a device without ever presenting the shader intents requirements you intent for it)

Edited by JohnnyCode

Share this post


Link to post
Share on other sites

 


It's 0.0 because the card doesn't support hardware vertex shaders. It works by running them in software.

Oh, come on, he is not profiling on a calculator.

 

Deepest vertex shader function compilation on Microsoft is 1.1. Unless he poses a machine without programable shaders....

 

?

 

https://software.intel.com/en-us/articles/intel-gma-3000-and-x3000-developers-guide

Vertex Shader Model

3.0 in SW

Share this post


Link to post
Share on other sites

 

 


It's 0.0 because the card doesn't support hardware vertex shaders. It works by running them in software.

Oh, come on, he is not profiling on a calculator.

 

Deepest vertex shader function compilation on Microsoft is 1.1. Unless he poses a machine without programable shaders....

 

?

 

https://software.intel.com/en-us/articles/intel-gma-3000-and-x3000-developers-guide

Vertex Shader Model

3.0 in SW

 

I was jjst right! PS 3.0, do me

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!