public void IntToOutIntFunc()
        {
            using ReadWriteBuffer <int> buffer = Gpu.Default.AllocateReadWriteBuffer <int>(1);

            Gpu.Default.For(1, id => StaticMethodsContainer.Assign(7, out buffer[0]));

            int[] result = buffer.GetData();

            Assert.IsTrue(result[0] == 7);
        }
Beispiel #2
0
 public void Execute(ThreadIds ids)
 {
     StaticMethodsContainer.Assign(7, out B[0]);
 }