SPB Git

spb/wp40_uqo

Public MIT
381 B · 10 lines cmake
1# Concatenates all .metal sources into one C++ translation unit exposing raid::metal::msl_bundle().2set(_out "namespace raid { namespace metal { const char* msl_bundle() { return R\"RAIDMSL(\n")3set(_sep "")4foreach(s ${SHADERS})5  file(READ ${s} _c)6  string(APPEND _out "// ---- ${s}\n${_c}\n")7endforeach()8string(APPEND _out ")RAIDMSL\"; } } }\n")9file(WRITE ${OUT} "${_out}")10
Files · 54c354ddfb230b05a57348bbf797ba24505b7ae4
Menu

Theme