blob: 1033b35e1518ce04469b0180bd689c4b6b782727 (
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
|
cbuffer params : register(b0)
{
float4x4 projectionViewWorld;
};
struct Input
{
float3 position : POSITION;
float4 color : COLOR;
};
struct Output
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
Output debugLineVS(Input input)
{
Output output;
output.position = mul(projectionViewWorld, float4(input.position, 1.0f));
output.color = input.color;
return output;
}
|