mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
The following table shows how each intrinsic maps to d3d assembly and the
flags that appear in the tpf bytecode, in binary.
GroupMemoryBarrier() sync_g 0010
GroupMemoryBarrierWithGroupSync() sync_g_t 0011
DeviceMemoryBarrier() sync_uglobal 1000
DeviceMemoryBarrierWithGroupSync() sync_uglobal_t 1001
AllMemoryBarrier() sync_uglobal_g 1010
AllMemoryBarrierWithGroupSync() sync_uglobal_g_t 1011
16 lines
375 B
Plaintext
16 lines
375 B
Plaintext
[require]
|
|
shader model >= 5.0
|
|
|
|
% This is just a parsing test.
|
|
[compute shader]
|
|
[numthreads(1024, 1, 1)]
|
|
void main(uint local_idx : SV_GroupIndex, uint group_id : SV_GroupID)
|
|
{
|
|
GroupMemoryBarrier();
|
|
GroupMemoryBarrierWithGroupSync();
|
|
DeviceMemoryBarrier();
|
|
DeviceMemoryBarrierWithGroupSync();
|
|
AllMemoryBarrier();
|
|
AllMemoryBarrierWithGroupSync();
|
|
}
|