mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
Updated shader makefile.
This commit is contained in:
parent
527ab0bcc1
commit
4f356fd7da
1 changed files with 13 additions and 5 deletions
|
@ -10,11 +10,12 @@ ifndef TARGET
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all:
|
all:
|
||||||
@echo Usage: make TARGET=# [clean, all, rebuild]
|
@echo Usage: make TARGET=# [clean, all, rebuild]
|
||||||
@echo " TARGET=0 (hlsl - dx9)"
|
@echo " TARGET=0 (hlsl - dx9)"
|
||||||
@echo " TARGET=1 (hlsl - dx11)"
|
@echo " TARGET=1 (hlsl - dx11)"
|
||||||
@echo " TARGET=2 (glsl - nacl)"
|
@echo " TARGET=2 (glsl - nacl)"
|
||||||
@echo " TARGET=3 (glsl - android)"
|
@echo " TARGET=3 (glsl - android)"
|
||||||
@echo " TARGET=4 (glsl - linux)"
|
@echo " TARGET=4 (glsl - linux)"
|
||||||
|
@echo " TARGET=5 (metal - OSX/iOS)"
|
||||||
@echo " VERBOSE=1 show build commands."
|
@echo " VERBOSE=1 show build commands."
|
||||||
else
|
else
|
||||||
|
|
||||||
|
@ -45,6 +46,13 @@ VS_FLAGS=--platform linux -p 120
|
||||||
FS_FLAGS=--platform linux -p 120
|
FS_FLAGS=--platform linux -p 120
|
||||||
CS_FLAGS=--platform linux -p 430
|
CS_FLAGS=--platform linux -p 430
|
||||||
SHADER_PATH=shaders/glsl
|
SHADER_PATH=shaders/glsl
|
||||||
|
else
|
||||||
|
ifeq ($(TARGET), 5)
|
||||||
|
VS_FLAGS=--platform osx -p metal
|
||||||
|
FS_FLAGS=--platform osx -p metal
|
||||||
|
CS_FLAGS=--platform osx -p metal
|
||||||
|
SHADER_PATH=shaders/metal
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue