Hans-Kristian Arntzen a77ada403e
[Vulkan] Use compute shaders to upload RGB565. (#14953)
A compatible path that is still fast. No reason to bother checking for
compat here really.
2023-02-05 19:23:48 +01:00

24 lines
465 B
Makefile

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