Home | History | Annotate | Download | only in PhoneXamlDirect3DApp1Comp
      1 Texture2D shaderTexture;
      2 SamplerState SampleType;
      3 
      4 //////////////
      5 // TYPEDEFS //
      6 //////////////
      7 struct PixelInputType
      8 {
      9     float4 position : SV_POSITION;
     10     float2 tex : TEXCOORD0;
     11 };
     12 
     13 ////////////////////////////////////////////////////////////////////////////////
     14 // Pixel Shader
     15 ////////////////////////////////////////////////////////////////////////////////
     16 float4 main(PixelInputType input) : SV_TARGET
     17 {
     18     float4 textureColor;
     19 
     20 
     21     // Sample the pixel color from the texture using the sampler at this texture coordinate location.
     22     textureColor = shaderTexture.Sample(SampleType, input.tex);
     23 
     24     return textureColor;
     25 }
     26