summaryrefslogtreecommitdiffstats
path: root/o3d/compiler/technique/test_data/HLSL_declarations.fx
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/compiler/technique/test_data/HLSL_declarations.fx')
-rw-r--r--o3d/compiler/technique/test_data/HLSL_declarations.fx30
1 files changed, 30 insertions, 0 deletions
diff --git a/o3d/compiler/technique/test_data/HLSL_declarations.fx b/o3d/compiler/technique/test_data/HLSL_declarations.fx
new file mode 100644
index 0000000..55c927a
--- /dev/null
+++ b/o3d/compiler/technique/test_data/HLSL_declarations.fx
@@ -0,0 +1,30 @@
+// Variable declarations ----------------------------
+
+extern aa;
+nointerpolation ab;
+shared ac;
+static ad;
+uniform ae;
+volatile af;
+
+static uniform nointerpolation ag;
+shared extern const column_major ah;
+
+extern const ai;
+shared const aj;
+static const ak;
+uniform const al;
+
+static row_major float2x2 am;
+uniform column_major float3x2 an;
+
+
+
+// Geometry Shader ----------------
+
+Buffer<float4> g_Buffer;
+
+float4 geom_fn() {
+ float4 bufferdata = g_Buffer.Load(1);
+ return bufferdata;
+}