RetroArch/gfx/drivers/vulkan_shaders/Makefile
Hans-Kristian Arntzen b013a9c863 Vulkan: Replace prebaked shaders with glslc -mfmt=c.
Far more clean and avoids illegal punning.
2016-06-25 14:55:03 +02:00

20 lines
344 B
Makefile

VERT_SHADERS := $(wildcard *.vert)
FRAG_SHADERS := $(wildcard *.frag)
SPIRV := $(VERT_SHADERS:.vert=.vert.inc) $(FRAG_SHADERS:.frag=.frag.inc)
GLSLANG := glslc
GLSLFLAGS := -mfmt=c
all: $(SPIRV)
%.vert.inc: %.vert
$(GLSLANG) $(GLSLFLAGS) -o $@ $<
%.frag.inc: %.frag
$(GLSLANG) $(GLSLFLAGS) -o $@ $<
clean:
rm -f $(SPIRV)
.PHONY: clean