From 7f8a9994d0bd99a171a1daa0bce46d92c02ccffd Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 21 May 2021 16:38:33 -0700 Subject: [gfx] Support StructuredBuffer. (#1851) Co-authored-by: T. Foley --- tests/compute/interface-func-param-in-struct.slang | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/compute/interface-func-param-in-struct.slang') diff --git a/tests/compute/interface-func-param-in-struct.slang b/tests/compute/interface-func-param-in-struct.slang index 9e3e6c201..c47b25d70 100644 --- a/tests/compute/interface-func-param-in-struct.slang +++ b/tests/compute/interface-func-param-in-struct.slang @@ -1,7 +1,7 @@ // Tests specializing a function with existential-struct-typed param. -//DISABLED_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cuda -shaderobj -//DISABLED_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cpu -shaderobj +//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cuda -shaderobj +//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -cpu -shaderobj [anyValueSize(8)] interface IInterface @@ -9,7 +9,7 @@ interface IInterface uint eval(); } -struct Impl : IInterface +public struct Impl : IInterface { uint val; uint eval() @@ -33,7 +33,7 @@ void compute(uint tid, Params p) [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID, -//TEST_INPUT:ubuffer(data=[0 0 0 0 1 0], stride=4):name=params.obj +//TEST_INPUT:set params.obj = new StructuredBuffer{new Impl{1}} uniform Params params) { uint tid = dispatchThreadID.x; -- cgit v1.2.3