From 9d515dd257498cba9144dd31f2f3219e997e03d0 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 19 Jan 2018 18:20:23 -0500 Subject: Allow arbitrary type string as type argument in spAddEntryPointEx. --- tests/compute/global-type-param.slang | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/compute') 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 RWStructuredBuffer outputBuffer; @@ -9,6 +9,15 @@ interface IBase float compute(); } +struct Wrapper : IBase +{ + T obj; + float compute() + { + return obj.compute(); + } +}; + struct Impl : IBase { float compute() -- cgit v1.2.3