如何将list传到cuda里进行处理?
如何将list传到cuda里进行处理
数据结构:
struct t_pixel
{
unsigned char blue,green,red,alpha;
}
用来保存图像
std::list<t_pixel*> images;
这个list来储存图像序列
t_pixel *image1=new t_pixel[SIZE];
images.push_front(image1);
这样储存图像序列
这样图像都是在内存里的
我要怎么把图像传到显存?是要写一个cuda的list,把内存图像拷到显存么?