Exemplo n.º 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;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }