summaryrefslogtreecommitdiff
path: root/tests/compute
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute')
-rw-r--r--tests/compute/global-type-param.slang11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/compute/global-type-param.slang b/tests/compute/global-type-param.slang
index 301ef1021..03f5df329 100644
--- a/tests/compute/global-type-param.slang
+++ b/tests/compute/global-type-param.slang
@@ -1,6 +1,6 @@
//TEST(smoke,compute):COMPARE_COMPUTE:-xslang -use-ir
//TEST_INPUT:ubuffer(data=[0], stride=4):dxbinding(0),glbinding(0),out
-//TEST_INPUT:type Impl
+//TEST_INPUT:type Wrapper<Impl>
RWStructuredBuffer<float> outputBuffer;
@@ -9,6 +9,15 @@ interface IBase
float compute();
}
+struct Wrapper<T : IBase> : IBase
+{
+ T obj;
+ float compute()
+ {
+ return obj.compute();
+ }
+};
+
struct Impl : IBase
{
float compute()