From ee5842a01cdb2bd6cd4acee7214666f180b95d84 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 20 Nov 2020 08:34:14 -0800 Subject: Make witness and RTTI handles lower to `uint2`. (#1613) * Make witness and RTTI handles lower to `uint2`. And enable some dynamic dispatch tests on D3D/VK. * Bug fixes. --- tests/compute/dynamic-dispatch-12.slang | 2 ++ tests/compute/dynamic-dispatch-13.slang | 6 ++++-- tests/compute/dynamic-dispatch-14.slang | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/compute/dynamic-dispatch-12.slang b/tests/compute/dynamic-dispatch-12.slang index cd122ec56..11bfcc1eb 100644 --- a/tests/compute/dynamic-dispatch-12.slang +++ b/tests/compute/dynamic-dispatch-12.slang @@ -1,6 +1,8 @@ // Test using interface typed shader parameters with dynamic dispatch. +//TEST(compute):COMPARE_COMPUTE:-dx11 //TEST(compute):COMPARE_COMPUTE:-cpu +//TEST(compute):COMPARE_COMPUTE:-vk //TEST(compute):COMPARE_COMPUTE:-cuda [anyValueSize(8)] diff --git a/tests/compute/dynamic-dispatch-13.slang b/tests/compute/dynamic-dispatch-13.slang index 3c6c37691..e80e5ce5f 100644 --- a/tests/compute/dynamic-dispatch-13.slang +++ b/tests/compute/dynamic-dispatch-13.slang @@ -1,6 +1,8 @@ // Test using interface typed shader parameters wrapped inside a `StructuredBuffer`. //TEST(compute):COMPARE_COMPUTE:-cpu +//TEST(compute):COMPARE_COMPUTE:-dx11 +//TEST(compute):COMPARE_COMPUTE:-vk //TEST(compute):COMPARE_COMPUTE:-cuda [anyValueSize(8)] @@ -13,10 +15,10 @@ interface IInterface RWStructuredBuffer gOutputBuffer; //TEST_INPUT:ubuffer(data=[rtti(MyImpl) witness(MyImpl, IInterface) 1 0], stride=4):name=gCb -StructuredBuffer gCb; +RWStructuredBuffer gCb; //TEST_INPUT:ubuffer(data=[rtti(MyImpl) witness(MyImpl, IInterface) 1 0], stride=4):name=gCb1 -StructuredBuffer gCb1; +RWStructuredBuffer gCb1; [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) diff --git a/tests/compute/dynamic-dispatch-14.slang b/tests/compute/dynamic-dispatch-14.slang index 5d84a3ee6..35da4bd06 100644 --- a/tests/compute/dynamic-dispatch-14.slang +++ b/tests/compute/dynamic-dispatch-14.slang @@ -1,6 +1,8 @@ // Test using interface typed shader parameters with associated types. +//TEST(compute):COMPARE_COMPUTE:-dx11 //TEST(compute):COMPARE_COMPUTE:-cpu +//TEST(compute):COMPARE_COMPUTE:-vk //TEST(compute):COMPARE_COMPUTE:-cuda [anyValueSize(8)] @@ -20,10 +22,10 @@ interface IInterface RWStructuredBuffer gOutputBuffer; //TEST_INPUT:ubuffer(data=[rtti(MyImpl) witness(MyImpl, IInterface) 1 0], stride=4):name=gCb -StructuredBuffer gCb; +RWStructuredBuffer gCb; //TEST_INPUT:ubuffer(data=[rtti(MyImpl) witness(MyImpl, IInterface) 1 0], stride=4):name=gCb1 -StructuredBuffer gCb1; +RWStructuredBuffer gCb1; [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) -- cgit v1.2.3