// Global constants
float4 pixelSize;

// Output structure
struct VS_OUTPUT
{
	float4 position : POSITION;
	float2 tex: TEXCOORD0;
};

// Entry point
VS_OUTPUT Main( float4 position : POSITION)
{
	VS_OUTPUT outputVertex = (VS_OUTPUT)0;
	
	outputVertex.position.xy = position.xy + pixelSize.xy;
	
	outputVertex.position.z = 0.5f;
	outputVertex.position.w = 1.0f;
	outputVertex.tex = float2(0.5f, -0.5f) * position.xy + 0.5f.xx;
	
	return outputVertex;
}