1 2void ComputeShaderFunction() 3{ 4 AllMemoryBarrier(); 5 AllMemoryBarrierWithGroupSync(); 6 DeviceMemoryBarrier(); 7 DeviceMemoryBarrierWithGroupSync(); 8 GroupMemoryBarrier(); 9 GroupMemoryBarrierWithGroupSync(); 10} 11 12