aboutsummaryrefslogtreecommitdiff
path: root/demo/d3d11/shaders/debugLineVS.hlsl
diff options
context:
space:
mode:
authorMiles Macklin <[email protected]>2017-03-10 14:51:31 +1300
committerMiles Macklin <[email protected]>2017-03-10 14:51:31 +1300
commitad3d90fafe5ee79964bdfe1f1e0704c3ffcdfd5f (patch)
tree4cc6f3288363889d7342f7f8407c0251e6904819 /demo/d3d11/shaders/debugLineVS.hlsl
downloadflex-ad3d90fafe5ee79964bdfe1f1e0704c3ffcdfd5f.tar.xz
flex-ad3d90fafe5ee79964bdfe1f1e0704c3ffcdfd5f.zip
Initial 1.1.0 binary release
Diffstat (limited to 'demo/d3d11/shaders/debugLineVS.hlsl')
-rw-r--r--demo/d3d11/shaders/debugLineVS.hlsl26
1 files changed, 26 insertions, 0 deletions
diff --git a/demo/d3d11/shaders/debugLineVS.hlsl b/demo/d3d11/shaders/debugLineVS.hlsl
new file mode 100644
index 0000000..1033b35
--- /dev/null
+++ b/demo/d3d11/shaders/debugLineVS.hlsl
@@ -0,0 +1,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;
+}