public PrimeContext() { CheckError(PrimeApi.rtpContextCreate(RTPcontexttype.RTP_CONTEXT_TYPE_CUDA, out InternalPtr)); }
public PrimeContext(bool useCuda = false) { _buffers = new List <IDisposable>(); CheckError(PrimeApi.rtpContextCreate(useCuda ? RTPcontexttype.RTP_CONTEXT_TYPE_CUDA : RTPcontexttype.RTP_CONTEXT_TYPE_CPU, out InternalPtr)); CheckError(PrimeApi.rtpContextSetCudaDeviceNumbers(InternalPtr, 0, 0)); }