]> git.cworth.org Git - apitrace-tests/blobdiff - apps/d3d10/tri.fx
Precompile d3d10 shader.
[apitrace-tests] / apps / d3d10 / tri.fx
diff --git a/apps/d3d10/tri.fx b/apps/d3d10/tri.fx
new file mode 100644 (file)
index 0000000..c221f9d
--- /dev/null
@@ -0,0 +1,15 @@
+struct VS_OUTPUT {
+    float4 Pos : SV_POSITION;
+    float4 Color : COLOR0;
+};
+
+VS_OUTPUT VS(float4 Pos : POSITION, float4 Color : COLOR) {
+    VS_OUTPUT Out;
+    Out.Pos = Pos;
+    Out.Color = Color;
+    return Out;
+}
+
+float4 PS(VS_OUTPUT In) : SV_Target {
+    return In.Color;
+}