Colon (:) inside of parenthesis

This is a function from DirectX

Sample function looks like this


void vertex_Shader(in float4 position_in : POSITION)

What does the : do inside the parenthesis?

Also...

What does the "in" do in the parameters?
float 4 is a datatype so whats "in" doing in there before a datatype?

Thank you!!!


Last edited on
I don't know about HLSL, but that IN is clearly an annotation.
Read more about it here http://msdn.microsoft.com/en-us/library/hh916383.aspx
Last edited on
Thanks @cire its HLSL...
Topic archived. No new replies allowed.