summaryrefslogtreecommitdiff
path: root/tests/compute/global-type-param2.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2019-02-05 18:18:16 -0800
committerGitHub <noreply@github.com>2019-02-05 18:18:16 -0800
commita39fd3d3f67df28b9206c9f08bc7d046f9b0db59 (patch)
treea3971c4c6217914e9dc4c12917f26a7eb6ac28b2 /tests/compute/global-type-param2.slang
parentc198eaba351850fcb3d82c2f5117efc0e2e2bf1e (diff)
parent60cc9f24c4bec54561bea873ee943aa3d0973dc2 (diff)
Merge branch 'master' into gencloser
Diffstat (limited to 'tests/compute/global-type-param2.slang')
-rw-r--r--tests/compute/global-type-param2.slang9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/compute/global-type-param2.slang b/tests/compute/global-type-param2.slang
index f29d01407..976a31df8 100644
--- a/tests/compute/global-type-param2.slang
+++ b/tests/compute/global-type-param2.slang
@@ -38,10 +38,6 @@ struct Impl : IBase
}
};
-__generic_param TImpl : IBase;
-
-ParameterBlock<TImpl> impl;
-
// at binding c0:
cbuffer existingBuffer
{
@@ -51,7 +47,10 @@ Texture2D tex1; // = 0.0
SamplerState sampler;
[numthreads(1, 1, 1)]
-void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
+void computeMain<
+ TImpl : IBase>(
+ uniform ParameterBlock<TImpl> impl,
+ uint3 dispatchThreadID : SV_DispatchThreadID)
{
uint tid = dispatchThreadID.x;
float b0 = tex1.SampleLevel(sampler, float2(0.0), 0.0).x + base0; // = 0.5