Sandy Carter
b3dae62c95
Don't fail if installed from build without tools
2023-07-15 20:05:35 -04:00
Hristo Stamenov
7d89f8ee50
Fix setting the outputs correctly after the for loop since it was overriding the value for each shader.
2023-05-12 12:00:45 -04:00
Hristo Iliev
9670cf4f43
Improvments on the shader compiler utility
...
The custom command didn't recognize bgfx::shaderc and the generator expression seems bettter. I also added an include option since it might be important to be able to define those.
Added changes to each of the cmake files to make sure bgfx:: is defined
Also add an output variable name parameter.
Co-Authored-By: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-02 00:55:01 -04:00
Sandy Carter
8d130b923d
bgfx: Move geometryc and add cmake macro
2023-01-15 22:08:41 -05:00
Sandy Carter
95a0a20a01
bimg: Add texturec and cmake macro
2023-01-14 22:10:06 -05:00
Sandy Carter
99537daccd
bx: Add bin2c and cmake macro
2023-01-13 09:12:03 -05:00
Sandy Carter
d50eec41c1
config: Factor out crosscompile tool search
...
Add search for shaderc, texturec, texturev and geometryv
2023-01-13 09:12:03 -05:00
Sandy Carter
ef8234966e
Fix warnings related to CMP0054
...
The LINUX variable is only available in 3.25+
2023-01-07 22:08:47 -05:00
Sandy Carter
c85f396456
fix formatting for all cmake files
2023-01-07 09:54:59 -05:00
Sandy Carter
c53792d472
Fix the shader compile cmake utility to use the new profiles
2023-01-04 18:22:27 -05:00
Sandy Carter
e4e935c7ae
ToolUtils: Add helper to compile shader to header
2022-08-22 08:57:50 -04:00
Sandy Carter
01c90714e1
export cmake function for shaderc_compiling
...
Remove unused add_shader and shaderc
Example usage:
```
shaderc_parse(
CLI
${ARGS_TYPE} ${PLATFORM_I} WERROR
"$<$<CONFIG:debug>:DEBUG>$<$<CONFIG:relwithdebinfo>:DEBUG>"
FILE ${SHADER_FILE_ABSOLUTE}
OUTPUT ${OUTPUT}
PROFILE ${PROFILE}
O "$<$<CONFIG:debug>:0>$<$<CONFIG:release>:3>$<$<CONFIG:relwithdebinfo>:3>$<$<CONFIG:minsizerel>:3>"
VARYINGDEF ${ARGS_VARYING_DEF}
INCLUDES ${BGFX_SHADER_INCLUDE_PATH}
BIN2C BIN2C ${SHADER_FILE_NAME_WE}_${PROFILE_EXT}
)
```
2022-08-22 08:57:50 -04:00