summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.typedef.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.typedef.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/hlsl.typedef.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.typedef.frag b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.typedef.frag
new file mode 100644
index 00000000000..b09785e6d88
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.typedef.frag
@@ -0,0 +1,11 @@
+typedef float4 myVec4;
+
+float4 ShaderFunction(float4 input, int ii) : COLOR0
+{
+ typedef int myInt;
+ myVec4 a1 = myVec4(1.0);
+ myInt i = 2;
+ typedef myInt myInt2;
+ myInt2 j = ii;
+ return input * a1 + myVec4(i + j);
+}