summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.structIoFourWay.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.structIoFourWay.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/hlsl.structIoFourWay.frag18
1 files changed, 18 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.structIoFourWay.frag b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.structIoFourWay.frag
new file mode 100644
index 00000000000..bca135e733a
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.structIoFourWay.frag
@@ -0,0 +1,18 @@
+struct T {
+ float f : packoffset(c4.y); // artificial, but validates all different treatments: uniform offset
+ centroid float g; // interpolant input
+ float d: SV_DepthGreaterEqual; // fragment output
+ float4 normal; // non-IO
+};
+
+T s; // loose uniform
+
+cbuffer buff {
+ T t : packoffset(c5.z);
+};
+
+T main(T t : myInput) : SV_Target0
+{
+ T local;
+ return local;
+}