aboutsummaryrefslogtreecommitdiff
path: root/demo/d3d/shaders/imguiVS.hlsl
blob: 6116ee182be00475370cc18db46b12ff4fee99b7 (plain) (blame)
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
cbuffer params : register(b0)
{
	float4x4 transform;
};

struct Input
{
	float2 position : POSITION;
	float2 texCoord : TEXCOORD;
	float4 color : COLOR;
};

struct Output
{
	float4 position : SV_POSITION;
	float2 texCoord : TEXCOORD;
	float4 color : COLOR;
};

Output imguiVS(Input input, uint instance : SV_InstanceID)
{
	Output output;

	output.position = mul(float4(input.position, 0.f, 1.f), transform);

	output.texCoord = input.texCoord.xy; // float2(input.texCoord.x, 1.f - input.texCoord.y);
	output.color = input.color;

	return output;
}