From ba24264275c640e0ac3732f0f5720e1f5816cded Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 25 May 2021 10:24:38 -0700 Subject: Allow overriding specialization args via `IShaderObject`. (#1854) * Allow overriding specialization args via `IShaderObject`. * Fixes. Co-authored-by: T. Foley --- tests/compute/dynamic-dispatch-14.slang | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/compute') diff --git a/tests/compute/dynamic-dispatch-14.slang b/tests/compute/dynamic-dispatch-14.slang index 8361cd317..9bbed215e 100644 --- a/tests/compute/dynamic-dispatch-14.slang +++ b/tests/compute/dynamic-dispatch-14.slang @@ -29,8 +29,7 @@ RWStructuredBuffer gOutputBuffer; //TEST_INPUT: set gCb = new StructuredBuffer{new MyImpl{1}}; RWStructuredBuffer gCb; -// Add two elements into the structured buffer to prevent specialization. -//TEST_INPUT: set gCb1 = new StructuredBuffer{new MyImpl{1}, new MyImpl2{2}}; +//TEST_INPUT: set gCb1 = new StructuredBuffer{new MyImpl{1}} : specialization_args(__Dynamic); RWStructuredBuffer gCb1; [numthreads(4, 1, 1)] -- cgit v1.2.3