summaryrefslogtreecommitdiff
path: root/tests/cross-compile/barriers.slang
blob: f6fb9ac3c74f3503849cf82a6885509ac70369de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//TEST:CROSS_COMPILE:-target spirv-assembly -entry main -stage compute

// Confirm that all HLSL barrier operations can be used when cross-compiling.

[numthreads(1,1,1)]
void main()
{
	AllMemoryBarrier();
	AllMemoryBarrierWithGroupSync();
	DeviceMemoryBarrier();
	DeviceMemoryBarrierWithGroupSync();
	GroupMemoryBarrier();
	GroupMemoryBarrierWithGroupSync();
}