The primeSimplePP creates the context in this manner:
RTPcontexttype contextType = RTP_CONTEXT_TYPE_CPU; Context context = Context::create(contextType);
The Optix Programming Guide creates the context in another manner:
rtpContextCreate( RTP_CONTEXT_TYPE_CUDA, &context)
The Context class and the RTPcontext class are not the same. I can not substitute one for the other. How do they relate?
I already wrote a lot of code based on the Optix Programming Guide, which uses the ‘RTPcontext context’. But, I like ‘Context context’ better because it has the createModel() member. Can I somehow use the context that is created from ‘Context context’ in the calls to rtpBufferDescCreate()?
Is there a more general way of describing how to use either one in place of the other?