blob: f2cd885cdf2370f2e777ce0353baa2698b24f1e6 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Texture2D my_texture;
SamplerState my_sampler
{
Filter = MIN_MAG_MIP_LINEAR;
AddressU = Wrap;
AddressV = Wrap;
};
struct PixelShaderInput
{
float4 pos : SV_POSITION;
float2 tex : TEXCOORD0;
};
float4 flip_pixel(PixelShaderInput input) : SV_TARGET
{
float2 texture_coords = float2(input.tex.x, input.tex.y);
return float4(my_texture.Sample(my_sampler, texture_coords).rgb, 1.0f);
}