Fixed shader makefile.
This commit is contained in:
parent
a25c6b0649
commit
5b1f2c710a
@ -121,20 +121,17 @@ BIN += $(CS_BIN)
|
||||
ASM += $(CS_ASM)
|
||||
endif
|
||||
|
||||
$(BUILD_INTERMEDIATE_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(BUILD_INTERMEDIATE_DIR)/vs_%.bin : $(SHADERS_DIR)vs_%.sc | $(BUILD_INTERMEDIATE_DIR)
|
||||
$(BUILD_INTERMEDIATE_DIR)/vs_%.bin: $(SHADERS_DIR)vs_%.sc
|
||||
@echo [$(<)]
|
||||
$(SILENT) $(SHADERC) $(VS_FLAGS) --type vertex --depends -o $(@) -f $(<) --disasm
|
||||
$(SILENT) cp $(@) $(BUILD_OUTPUT_DIR)/$(@F)
|
||||
|
||||
$(BUILD_INTERMEDIATE_DIR)/fs_%.bin : $(SHADERS_DIR)fs_%.sc | $(BUILD_INTERMEDIATE_DIR)
|
||||
$(BUILD_INTERMEDIATE_DIR)/fs_%.bin: $(SHADERS_DIR)fs_%.sc
|
||||
@echo [$(<)]
|
||||
$(SILENT) $(SHADERC) $(FS_FLAGS) --type fragment --depends -o $(@) -f $(<) --disasm
|
||||
$(SILENT) cp $(@) $(BUILD_OUTPUT_DIR)/$(@F)
|
||||
|
||||
$(BUILD_INTERMEDIATE_DIR)/cs_%.bin : $(SHADERS_DIR)cs_%.sc | $(BUILD_INTERMEDIATE_DIR)
|
||||
$(BUILD_INTERMEDIATE_DIR)/cs_%.bin: $(SHADERS_DIR)cs_%.sc
|
||||
@echo [$(<)]
|
||||
$(SILENT) $(SHADERC) $(CS_FLAGS) --type compute --depends -o $(@) -f $(<) --disasm
|
||||
$(SILENT) cp $(@) $(BUILD_OUTPUT_DIR)/$(@F)
|
||||
@ -161,6 +158,8 @@ dirs:
|
||||
.PHONY: rebuild
|
||||
rebuild: clean all
|
||||
|
||||
$(BIN) : | $(BUILD_INTERMEDIATE_DIR)
|
||||
|
||||
endif # TARGET
|
||||
|
||||
-include $(VS_DEPS)
|
||||
|
Loading…
Reference in New Issue
Block a user