summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cross-compile/c-simple.slang16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cross-compile/c-simple.slang b/tests/cross-compile/c-simple.slang
new file mode 100644
index 000000000..e47cd15c3
--- /dev/null
+++ b/tests/cross-compile/c-simple.slang
@@ -0,0 +1,16 @@
+//DISABLE_TEST:SIMPLE: -profile ps_5_0 -entry main -target c
+
+//Texture2D t;
+//SamplerState s;
+
+float4 main(float2 uv) : SV_Target
+{
+ float4 result = 1;
+
+ result.x += uv.x;
+ result.y += uv.y;
+ result.z -= uv.x;
+ result.w -= uv.y;
+
+ return result;
+}