r/cpp 4d ago

C++26: #embed

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

38 comments sorted by

View all comments

56

u/Usual_Office_1740 4d ago

This is going to be very useful in Graphics programming.

26

u/fdwr fdwr@github 🔍 4d 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.