Commit Graph

8 Commits

Author SHA1 Message Date
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