Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (21 loc) · 464 Bytes

SimpleVertexShader.hlsl

File metadata and controls

25 lines (21 loc) · 464 Bytes
 
Nov 20, 2012
Nov 20, 2012
1
2
//#pragma pack_matrix( row_major )
3
4
5
6
7
struct VertexShaderInput
{
float3 pos : POSITION;
float3 color : COLOR0;
Nov 21, 2012
Nov 21, 2012
8
float2 tex : TEXCOORD0;
9
10
11
12
13
14
};
struct VertexShaderOutput
{
float4 pos : SV_POSITION;
float3 color : COLOR0;
Nov 21, 2012
Nov 21, 2012
15
float2 tex : TEXCOORD0;
16
17
18
19
20
};
VertexShaderOutput main(VertexShaderInput input)
{
VertexShaderOutput output;
Nov 20, 2012
Nov 20, 2012
21
output.pos = float4(input.pos, 1.0f);
22
output.color = input.color;
Nov 21, 2012
Nov 21, 2012
23
output.tex = input.tex;