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 · 3905e5b3fb7358cf7bf5ec9f867c9a99f89e8d4a
Menu

Theme