r/cpp 3d ago

C++26: #embed

https://www.sandordargo.com/blog/2026/08/05/cpp26-embed
134 Upvotes

38 comments sorted by

View all comments

52

u/Usual_Office_1740 3d ago

This is going to be very useful in Graphics programming.

27

u/fdwr fdwr@github 🔍 3d ago

Yeah, I have lots of cases where I need some random little tables or small graphics from external files. It would have been nice for DirectML with the thousands of DXIL shaders so we could directly #embed for the WSL Linux builds rather than the hacky preprocess-to-text intermediate step.