mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 21:12:35 +01:00
_bgfx_shaderc_parse: Must have profile specified.
This commit is contained in:
@@ -78,7 +78,7 @@ function(add_bgfx_shader FILE FOLDER)
|
||||
# essl
|
||||
if(NOT "${TYPE}" STREQUAL "COMPUTE")
|
||||
set(ESSL_OUTPUT ${BGFX_DIR}/examples/runtime/shaders/essl/${FILENAME}.bin)
|
||||
_bgfx_shaderc_parse(ESSL ${COMMON} ANDROID OUTPUT ${ESSL_OUTPUT})
|
||||
_bgfx_shaderc_parse(ESSL ${COMMON} ANDROID PROFILE 100_es OUTPUT ${ESSL_OUTPUT})
|
||||
list(APPEND OUTPUTS "ESSL")
|
||||
set(OUTPUTS_PRETTY "${OUTPUTS_PRETTY}ESSL, ")
|
||||
endif()
|
||||
|
||||
@@ -365,7 +365,7 @@ if(TARGET bgfx::shaderc)
|
||||
# OUTPUT filename
|
||||
# FRAGMENT|VERTEX|COMPUTE
|
||||
# ANDROID|ASM_JS|IOS|LINUX|NACL|OSX|WINDOWS
|
||||
# [PROFILE profile]
|
||||
# PROFILE profile
|
||||
# [O 0|1|2|3]
|
||||
# [VARYINGDEF filename]
|
||||
# [BIN2C filename]
|
||||
@@ -392,6 +392,8 @@ if(TARGET bgfx::shaderc)
|
||||
# -f
|
||||
if(ARG_FILE)
|
||||
list(APPEND CLI "-f" "${ARG_FILE}")
|
||||
else()
|
||||
message(SEND_ERROR "Call to _bgfx_shaderc_parse() must have an input file path specified.")
|
||||
endif()
|
||||
|
||||
# -i
|
||||
@@ -405,6 +407,8 @@ if(TARGET bgfx::shaderc)
|
||||
# -o
|
||||
if(ARG_OUTPUT)
|
||||
list(APPEND CLI "-o" "${ARG_OUTPUT}")
|
||||
else()
|
||||
message(SEND_ERROR "Call to _bgfx_shaderc_parse() must have an output file path specified.")
|
||||
endif()
|
||||
|
||||
# --bin2c
|
||||
@@ -518,6 +522,8 @@ if(TARGET bgfx::shaderc)
|
||||
# --profile
|
||||
if(ARG_PROFILE)
|
||||
list(APPEND CLI "--profile" "${ARG_PROFILE}")
|
||||
else()
|
||||
message(SEND_ERROR "Call to _bgfx_shaderc_parse() must have a shader profile.")
|
||||
endif()
|
||||
|
||||
# -O
|
||||
|
||||
Reference in New Issue
Block a user