예제 #1
0
 internal Program(Context context, ProgramSafeHandle handle)
 {
     if (context == null)
         throw new ArgumentNullException("context");
     if (handle == null)
         throw new ArgumentNullException("handle");
     
     _context = context;
     _handle = handle;
 }
예제 #2
0
        internal Sampler(SamplerSafeHandle handle, Context context)
        {
            if (handle == null)
                throw new ArgumentNullException("handle");
            if (context == null)
                throw new ArgumentNullException("context");

            _handle = handle;
            _context = context;
        }
예제 #3
0
        internal CommandQueue(CommandQueueSafeHandle handle, Context context, Device device)
        {
            if (handle == null)
                throw new ArgumentNullException("handle");
            if (context == null)
                throw new ArgumentNullException("context");
            if (device == null)
                throw new ArgumentNullException("device");

            _handle = handle;
            _context = context;
            _device = device;
        }