[FFmpeg-devel] [PATCH] avcodec/vulkan: Add support for generating GLSL strings from comp shaders

IndecisiveTurtle geoster3d at gmail.com
Sat Oct 5 23:44:01 EEST 2024


---
 libavcodec/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 4eed81ed03..734ab14596 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -1371,3 +1371,10 @@ $(SUBDIR)pcm.o: $(SUBDIR)pcm_tables.h
 $(SUBDIR)qdm2.o: $(SUBDIR)qdm2_tables.h
 $(SUBDIR)sinewin.o: $(SUBDIR)sinewin_tables.h
 endif
+
+clean::
+	$(RM) $(CLEANSUFFIXES:%=libavcodec/vulkan/%)
+VULKAN = $(subst $(SRC_PATH)/,,$(wildcard $(SRC_PATH)/libavcodec/vulkan/*.comp))
+.SECONDARY: $(VULKAN:.comp=.c)
+libavcodec/vulkan/%.c: $(SRC_PATH)/libavcodec/vulkan/%.comp
+	$(M)$(SRC_PATH)/tools/source2c $< $@
\ No newline at end of file
-- 
2.46.2



More information about the ffmpeg-devel mailing list