I've just started to learn some basics of DirectX and hlsl. I'm following the examples from a book. I have a problem with the following basic shader:
float4 VS_Main( float4 pos:POSITION):SV_POSITION
{
return pos;
}
Intelligence says that float4 is an undefined identifier. As far as I know, this should be a standard type used in HLSL for defining a 4-dimensional vector, but I can't get enough informations on it and the book doesn't help either. What am I missing here?