summaryrefslogtreecommitdiffstats
path: root/tests/language-feature/capability/testing-framework-with-profiles.slang
blob: 215ba887ef708b6082da94dd6e5c9d9ee1675a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute -profile sm_6_1
//TEST:SIMPLE(filecheck=CHECK): -target hlsl  -entry computeMain -stage compute
//TEST:SIMPLE(filecheck=CHECK): -target hlsl  -entry computeMain -stage compute -capability sm_6_1
//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry computeMain -stage compute -profile sm_6_1
//TEST:SIMPLE(filecheck=CHECK_WARN): -target hlsl -entry computeMain -stage compute -capability sm_4_0 

//CHECK-NOT: warning 41012
//CHECK_WARN: warning 41012
//CHECK: computeMain

//TEST_INPUT:ubuffer(data=[1], stride=4):out,name outputBuffer
RWStructuredBuffer<uint> outputBuffer;

[numthreads(1, 1, 1)]
void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
{
    // BUF: 1
    outputBuffer[0] = WaveMaskSum(0xFF, 1);
}