代码拉取完成,页面将自动刷新
# This Makefile is meant for shader compilation only.
# Use cargo to compile the rust part of the project.
GLSLC = $(shell ./find_glslc.sh)
ifeq "$(GLSLC)" ""
break;
endif
define outpath
$(addsuffix .$(1), $(subst /shaders/,/compiled/,$(2)))
endef
SHADERS = $(filter-out /header/,$(wildcard */shaders/**/*.vert */shaders/**/*.frag))
OUT = $(call outpath,spv,$(SHADERS)) $(call outpath,spvasm,$(SHADERS))
all: $(OUT)
%.spv:
mkdir -p $(dir $@)
$(GLSLC) -MD -c -g -O -o $@ $<
%.spvasm:
mkdir -p $(dir $@)
$(GLSLC) -MD -S -g -O -o $@ $<
define shader_rules
$(call outpath,spv,$1): $1
$(call outpath,spvasm,$1) : $1
endef
$(foreach shader,$(SHADERS),$(eval $(call shader_rules,$(shader))))
clean:
$(RM) */compiled/**/*.spv */compiled/**/*.spvdis */compiled/**/*.d
.PHONY: all clean
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。