internal Program(Context context, ProgramSafeHandle handle) { if (context == null) throw new ArgumentNullException("context"); if (handle == null) throw new ArgumentNullException("handle"); _context = context; _handle = handle; }
internal Sampler(SamplerSafeHandle handle, Context context) { if (handle == null) throw new ArgumentNullException("handle"); if (context == null) throw new ArgumentNullException("context"); _handle = handle; _context = context; }
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; }