-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathVertexShader.hlsl
34 lines (30 loc) · 983 Bytes
/
VertexShader.hlsl
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
27
28
29
30
31
32
33
34
//--------------------------------------------------------------------------------------
// VertexShader.hlsl
//
// Simple vertex shader for rendering a textured quad
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
struct Vertex
{
float4 position : SV_Position;
float2 texcoord : TEXCOORD0;
};
struct Interpolants
{
float4 position : SV_Position;
float2 texcoord : TEXCOORD0;
};
#define MainRS \
"RootFlags(ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT" \
" | DENY_DOMAIN_SHADER_ROOT_ACCESS" \
" | DENY_GEOMETRY_SHADER_ROOT_ACCESS" \
" | DENY_HULL_SHADER_ROOT_ACCESS)," \
"DescriptorTable (SRV(t0), visibility=SHADER_VISIBILITY_PIXEL),"\
"StaticSampler(s0, visibility=SHADER_VISIBILITY_PIXEL)"
[RootSignature(MainRS)]
Interpolants main( Vertex In )
{
return In;
}