diff options
| author | Yong He <yonghe@outlook.com> | 2020-10-22 23:44:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-22 23:44:11 -0700 |
| commit | 6d1fe29cdcbca18d559e302d6427a504d1762173 (patch) | |
| tree | c4f2539c4ad926f3a71ee4af5e13e28e3f7b9606 /tests | |
| parent | 10e1bae34733f1cdb5abc001666b1aafa1c1f406 (diff) | |
Generate `if` based dispatch logic on GPU targets. (#1585)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/compute/dynamic-dispatch-13.slang | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/compute/dynamic-dispatch-13.slang b/tests/compute/dynamic-dispatch-13.slang index 4e523e483..3c6c37691 100644 --- a/tests/compute/dynamic-dispatch-13.slang +++ b/tests/compute/dynamic-dispatch-13.slang @@ -43,3 +43,11 @@ public struct MyImpl : IInterface return input + val; } }; +public struct MyImpl2 : IInterface +{ + int val; + int run(int input) + { + return input - val; + } +}; |
