[英]CIFilters directly on OpenGL texture
How can I apply CIFilters directly on OpenGL texture? 如何将CIFilters直接应用于OpenGL纹理? To avoid VRAM->RAM->VRAM (GPU->CPU->GPU) actions.
为了避免VRAM-> RAM-> VRAM(GPU-> CPU-> GPU)操作。 I mean to avoid this type of pipeline:
我的意思是避免这种类型的管道:
Because they are slow. 因为它们很慢。 I need somehow to do as much as possible in GPU.
我需要某种方式在GPU中尽可能多地执行操作。 But how?
但是如何?
Refer CGBitmapContextCreate() 请参考CGBitmapContextCreate()
CGContextRef CGBitmapContextCreate (
void *data,
size_t width,
size_t height,
size_t bitsPerComponent,
size_t bytesPerRow,
CGColorSpaceRef colorspace,
CGBitmapInfo bitmapInfo
);
Notice that it takes void *data. 注意,它需要void * data。 This can be your image data which you can pass directly to OpenGL.
这可能是你可以直接传递给OpenGL的图像数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.