I wanna draw a pixel buffer directly on the screen with the Apple Metal API.
in OpenGL I can use glDrawPixels
how to do it in Metal?
Is it only possible to draw my buffer on a texture and than render it with two triangles?
It would be nice to have C/C++ code
There isn't a
glDrawPixelsin Metal, so you would need to actually create a render pipeline, a render target, command queue, buffers and the encoder and then draw the triangles.And in my opinion, nobody should be using
glDrawPixelsanyway.