mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-03 12:56:50 -05:00
Changed compile order when building embedded shaders.
This commit is contained in:
parent
304683d839
commit
3785d5e60d
1 changed files with 10 additions and 10 deletions
|
@ -24,21 +24,21 @@ SHADER_TMP = $(TEMP)/tmp
|
||||||
|
|
||||||
vs_%.bin.h : vs_%.sc
|
vs_%.bin.h : vs_%.sc
|
||||||
@echo [$(<)]
|
@echo [$(<)]
|
||||||
$(SILENT) $(SHADERC) $(VS_FLAGS) --platform windows -p vs_3_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx9
|
|
||||||
@cat $(SHADER_TMP) > $(@)
|
|
||||||
$(SILENT) $(SHADERC) $(VS_FLAGS) --platform windows -p vs_4_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx11
|
|
||||||
@cat $(SHADER_TMP) >> $(@)
|
|
||||||
$(SILENT) $(SHADERC) $(VS_FLAGS) --platform linux -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_glsl
|
$(SILENT) $(SHADERC) $(VS_FLAGS) --platform linux -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_glsl
|
||||||
@cat $(SHADER_TMP) >> $(@)
|
@cat $(SHADER_TMP) > $(@)
|
||||||
|
-$(SILENT) $(SHADERC) $(VS_FLAGS) --platform windows -p vs_3_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx9
|
||||||
|
-@cat $(SHADER_TMP) >> $(@)
|
||||||
|
-$(SILENT) $(SHADERC) $(VS_FLAGS) --platform windows -p vs_4_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx11
|
||||||
|
-@cat $(SHADER_TMP) >> $(@)
|
||||||
|
|
||||||
fs_%.bin.h : fs_%.sc
|
fs_%.bin.h : fs_%.sc
|
||||||
@echo [$(<)]
|
@echo [$(<)]
|
||||||
$(SILENT) $(SHADERC) $(FS_FLAGS) --platform windows -p ps_3_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx9
|
|
||||||
@cat $(SHADER_TMP) > $(@)
|
|
||||||
$(SILENT) $(SHADERC) $(FS_FLAGS) --platform windows -p ps_4_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx11
|
|
||||||
@cat $(SHADER_TMP) >> $(@)
|
|
||||||
$(SILENT) $(SHADERC) $(FS_FLAGS) --platform linux -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_glsl
|
$(SILENT) $(SHADERC) $(FS_FLAGS) --platform linux -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_glsl
|
||||||
@cat $(SHADER_TMP) >> $(@)
|
@cat $(SHADER_TMP) > $(@)
|
||||||
|
-$(SILENT) $(SHADERC) $(FS_FLAGS) --platform windows -p ps_3_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx9
|
||||||
|
-@cat $(SHADER_TMP) >> $(@)
|
||||||
|
-$(SILENT) $(SHADERC) $(FS_FLAGS) --platform windows -p ps_4_0 -O 3 -f $(<) -o $(SHADER_TMP) --bin2c $(basename $(<))_dx11
|
||||||
|
-@cat $(SHADER_TMP) >> $(@)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
Loading…
Reference in a new issue