summaryrefslogtreecommitdiffstats
path: root/tests/compute/global-type-param-array.slang
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2019-02-05 16:47:37 -0800
committerGitHub <noreply@github.com>2019-02-05 16:47:37 -0800
commit13d7e34d8be4316c59bd3d00a1e5526215db6fa4 (patch)
tree1a774f323300e72ca2ae66db2d883491f0790d39 /tests/compute/global-type-param-array.slang
parent43950e2b2f2b1109fe25e67fc678272af6dfb7ef (diff)
parent60cc9f24c4bec54561bea873ee943aa3d0973dc2 (diff)
Merge branch 'master' into fix-nested-type-conformances
Diffstat (limited to 'tests/compute/global-type-param-array.slang')
-rw-r--r--tests/compute/global-type-param-array.slang9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/compute/global-type-param-array.slang b/tests/compute/global-type-param-array.slang
index 87236d8f6..d801efe2c 100644
--- a/tests/compute/global-type-param-array.slang
+++ b/tests/compute/global-type-param-array.slang
@@ -6,17 +6,16 @@
RWStructuredBuffer<float> outputBuffer;
import globalTypeParamArrayShared;
-__generic_param TImpl : IBase;
-
-ParameterBlock<TImpl> impl;
-
float doCompute<T:IBase>(T t)
{
return t.compute(1.0);
}
[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 outVal = doCompute<TImpl>(impl);