blob: 7db1d5edca1d723b19084c1c9ec357398b6c257b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "common-vs.hlsl"
#include "mask-combiner-common.hlsl"
struct VS_MASKINPUT
{
// Note, the input is
float2 vPos : POSITION;
float4 vTexCoords : POSITION1;
};
VS_MASKOUTPUT MaskCombinerVS(VS_MASKINPUT aInput)
{
float4 position = float4(
aInput.vPos.x * 2.0f - 1.0f,
1.0f - (aInput.vPos.y * 2.0f),
0, 1);
VS_MASKOUTPUT output;
output.vPosition = position;
output.vTexCoords = UnitQuadToRect(aInput.vPos, aInput.vTexCoords);
return output;
}
|