src/video/windowsrt/SimpleVertexShader.hlsl
changeset 8384 bc7a52629e1e
parent 8348 7cdcd6d28c85
child 8418 5230bba62cf2
equal deleted inserted replaced
8383:1f415392ccf0 8384:bc7a52629e1e
     1 
     1 
     2 //#pragma pack_matrix( row_major )
     2 //#pragma pack_matrix( row_major )
     3 
     3 
     4 struct VertexShaderInput
     4 struct VertexShaderInput
     5 {
     5 {
     6 	float3 pos : POSITION;
     6     float3 pos : POSITION;
     7 	float2 tex : TEXCOORD0;
     7     float2 tex : TEXCOORD0;
     8 };
     8 };
     9 
     9 
    10 struct VertexShaderOutput
    10 struct VertexShaderOutput
    11 {
    11 {
    12 	float4 pos : SV_POSITION;
    12     float4 pos : SV_POSITION;
    13 	float2 tex : TEXCOORD0;
    13     float2 tex : TEXCOORD0;
    14 };
    14 };
    15 
    15 
    16 VertexShaderOutput main(VertexShaderInput input)
    16 VertexShaderOutput main(VertexShaderInput input)
    17 {
    17 {
    18 	VertexShaderOutput output;
    18     VertexShaderOutput output;
    19 	output.pos = float4(input.pos, 1.0f);
    19     output.pos = float4(input.pos, 1.0f);
    20 	output.tex = input.tex;
    20     output.tex = input.tex;
    21 	return output;
    21     return output;
    22 }
    22 }