refactor: move Vulkan RoPE kernels into extensions

This commit is contained in:
leejet committed 2026-10-31 23:39:19 +08:00
1 parent 5c5535d01d
commit 7ab323ef25
9 files changed
+493 -8

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
file(READ "${INPUT}" SPIRV HEX)
string(REGEX REPLACE "(..)(..)(..)(..)" "0x\\4\\3\\2\\1," SPIRV_WORDS "${SPIRV}")
file(WRITE "${OUTPUT}" "#include <cstdint>\nnamespace sd_vulkan_shaders {\nstatic const uint32_t ${NAME}[] = {${SPIRV_WORDS}};\n}\n")