src/video/windowsrt/SimplePixelShader.hlsl
changeset 8384 bc7a52629e1e
parent 8348 7cdcd6d28c85
equal deleted inserted replaced
8383:1f415392ccf0 8384:bc7a52629e1e
     1 Texture2D theTexture : register(t0);
     1 Texture2D theTexture : register(t0);
     2 SamplerState theSampler : register(s0);
     2 SamplerState theSampler : register(s0);
     3 
     3 
     4 struct PixelShaderInput
     4 struct PixelShaderInput
     5 {
     5 {
     6 	float4 pos : SV_POSITION;
     6     float4 pos : SV_POSITION;
     7 
     7 
     8 	float2 tex : TEXCOORD0;
     8     float2 tex : TEXCOORD0;
     9 };
     9 };
    10 
    10 
    11 float4 main(PixelShaderInput input) : SV_TARGET
    11 float4 main(PixelShaderInput input) : SV_TARGET
    12 {
    12 {
    13 	//return float4(input.color,1.0f);
    13     //return float4(input.color,1.0f);
    14 	return theTexture.Sample(theSampler, input.tex);
    14     return theTexture.Sample(theSampler, input.tex);
    15 }
    15 }