mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -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
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
@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
|
||||
all: $(BIN)
|
||||
|
|
Loading…
Reference in a new issue