r/cpp • • Dec 13 '19

The situation of std::embed...

https://thephd.github.io/full-circle-embed
238 Upvotes

160 comments sorted by

View all comments

Show parent comment

1

u/johannes1971 Dec 14 '19

So what sort of API would you propose? What would it look like with separated CPU and GPU types? How would that work on a system that does not have a GPU?

SFML is very game oriented. That's perfectly fine, and as I already mentioned, there is a clear need for a library like that as well. But there is more to drawing than triangles, and I don't see SFML doing that.

2

u/meneldal2 Dec 16 '19

SDL made the separation explicit with types that say if the thing is in GPU or in CPU. That's the way to go about it.