src/video/windowsrt/SimpleVertexShader.hlsl
author David Ludwig <dludwig@pobox.com>
Tue, 08 Jan 2013 23:11:22 -0500
changeset 8384 bc7a52629e1e
parent 8348 7cdcd6d28c85
child 8418 5230bba62cf2
permissions -rw-r--r--
WinRT: converted tabs to spaces in src/video/windowsrt/*
dludwig@8346
     1
dludwig@8346
     2
//#pragma pack_matrix( row_major )
dludwig@8322
     3
dludwig@8322
     4
struct VertexShaderInput
dludwig@8322
     5
{
dludwig@8384
     6
    float3 pos : POSITION;
dludwig@8384
     7
    float2 tex : TEXCOORD0;
dludwig@8322
     8
};
dludwig@8322
     9
dludwig@8322
    10
struct VertexShaderOutput
dludwig@8322
    11
{
dludwig@8384
    12
    float4 pos : SV_POSITION;
dludwig@8384
    13
    float2 tex : TEXCOORD0;
dludwig@8322
    14
};
dludwig@8322
    15
dludwig@8322
    16
VertexShaderOutput main(VertexShaderInput input)
dludwig@8322
    17
{
dludwig@8384
    18
    VertexShaderOutput output;
dludwig@8384
    19
    output.pos = float4(input.pos, 1.0f);
dludwig@8384
    20
    output.tex = input.tex;
dludwig@8384
    21
    return output;
dludwig@8322
    22
}