how can i enrum(get name of) vertex shader attribs (input vertex type like as color and position) ?
for example i want get name of the "in_Position" and "in_Color" from following shader:
float4x4 in_ModelviewProjectionMatrix;
struct OutputVS
{
float4 posH : POSITION0;
};
OutputVS vmain(float3 in_Position : POSITION0, float3 in_Color : COLOR0)
{
....
}
i can get in_ModelviewProjectionMatrix fromconstant table but in_Position and in_Color aren't exist in constant table. i want use this variables for creating desired VertexDeclaration for my vertex shader automatically in my engine