コード例 #1
0
        public ComputeProgram(ComputeContext context, string source)
        {
            handle = CL10.CreateProgramWithSource(context.handle, 1, new[] { source }, null, out _);

#if DEBUG
            Trace.WriteLine("Create " + this + " in Thread(" + Thread.CurrentThread.ManagedThreadId + ").", "Information");
#endif
        }