blob: b030bc42158f76de025f9363365dfe7cdaa06177 [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 my_texture.Sample(my_sampler, texture_coords).rgba;
}