diff options
| author | Yong He <yonghe@outlook.com> | 2018-01-19 18:20:23 -0500 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2018-01-19 22:21:29 -0500 |
| commit | 9d515dd257498cba9144dd31f2f3219e997e03d0 (patch) | |
| tree | 131571608747f80354236ba62ca946c7fc703db7 /tests | |
| parent | 2079b941bc5849b6ab33774fb90cefe9c2d624cb (diff) | |
Allow arbitrary type string as type argument in spAddEntryPointEx.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/compute/global-type-param.slang | 11 |
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() |
