Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: ui/surface/accelerated_surface_win.hlsl

Issue 9915001: Windows: added command line switch to reverse rows of image transport surface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/surface/accelerated_surface_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // To compile these two shaders:
6 // fxc /E pixelMain /T ps_2_0 accelerated_surface_win.hlsl
7 // fxc /E vertexMain /T vs_2_0 accelerated_surface_win.hlsl
8 //
9 // fxc is in the DirectX SDK.
10
11 struct Vertex {
12 float4 position : POSITION;
13 float2 texCoord : TEXCOORD0;
14 };
15
16 texture t;
17 sampler s;
18
19 // Passes a position and texture coordinate to the pixel shader.
20 Vertex vertexMain(Vertex input) {
21 return input;
22 };
23
24 // Samples a texture at the given texture coordinate and returns the result.
25 float4 pixelMain(float2 texCoord : TEXCOORD0) : COLOR0 {
26 return tex2D(s, texCoord);
27 };
OLDNEW
« no previous file with comments | « ui/surface/accelerated_surface_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698