static CudaTexture * create(int width, int height, GLenum type, int internalFormat, int format)
cudaGraphicsResource *& cudaRes()
ErrCode initCuda(Ptr< Texture > t, uint32_t flag=0)
const Ptr< Texture > & texture() const
cudaGraphicsResource * cudaRes() const
ErrCode cudaProcess(std::function< ErrCode(cudaArray_t, cudaStream_t)> cudaOps, cudaStream_t stream=0)