summaryrefslogtreecommitdiffstats
path: root/tests/downstream/dxc-x-arg.slang
blob: 1364133d35db9f55367ac5610ffbbde951b43198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-cpu -compute -compile-arg -O3 -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj
//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj

// We are going to pass -Gis to DXC.
// Test can only work on DXC.
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -Xslang... -Xdxc -Gis -X. -shaderobj 

//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer

RWStructuredBuffer<int> outputBuffer;

[numthreads(4, 1, 1)]
void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
{
    outputBuffer[dispatchThreadID.x] = dispatchThreadID.x;
}