Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualkauna

Posted 08 October 2012 - 11:47 AM

I'm not sure if this will help but it seems to me your input layout defines vertex position as a 3 element vector (DXGI_FORMAT_R32G32B32_FLOAT), while your vertex shader parameter is expecting a 4 element one (float4 pos). I'd suggest you try and change the vertex shader parameter to float3 and see if that helps!


Using DXGI_FORMAT_R32G32B32_FLOAT is perfectly valid. The vertex shader will receive the value as [x,y,z,1.0f] automatically.

Cheers!

#1kauna

Posted 08 October 2012 - 11:19 AM

I'm not sure if this will help but it seems to me your input layout defines vertex position as a 3 element vector (DXGI_FORMAT_R32G32B32_FLOAT), while your vertex shader parameter is expecting a 4 element one (float4 pos). I'd suggest you try and change the vertex shader parameter to float3 and see if that helps!


This is perfectly valid. The vertex shader will receive the value as [x,y,z,1.0f] automatically.

Cheers!

PARTNERS