Commit Graph

137 Commits

Author SHA1 Message Date
e-erdal
9ee85d3c1b Fix directx-headers 2022-10-28 21:48:50 +03:00
e-erdal
74a8e4dc72 ordering matters 2022-10-28 21:35:02 +03:00
e-erdal
99f17108ca Add linux compat for bx 2022-10-28 21:25:03 +03:00
e-erdal
862912e7e9 Fix WSL Include 2022-10-28 21:18:47 +03:00
e-erdal
72ea9b6f29 Add other DX Headers 2022-10-28 21:00:43 +03:00
e-erdal
6e23a39de6 Update submodules 2022-10-28 20:36:16 +03:00
Samuel Hellawell
5c54e5f299 Allow to specify which tools to compile
Signed-off-by: Samuel Hellawell <sshellawell@gmail.com>
2022-09-23 04:36:01 +01:00
Sandy Carter
f5dc53db85 Find shaderc when cross-compiling 2022-08-24 11:56:03 -04:00
Sandy Carter
5ba5a38762 add new 47-pixelformats example 2022-08-23 07:20:31 -04: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
Sandy Carter
6ecce2449d emscripten: Set examples as htmls 2022-08-22 08:57:15 -04:00
Sandy Carter
c717984be0 emscripten: specify webgl2
Fix `undefined symbol emscripten_webgl2_get_proc_address` linker error
2022-08-22 08:57:15 -04:00
Sandy Carter
12b75cc0ad config: Add option to turn on debug output on release 2022-08-07 08:33:26 -04:00
e-erdal
26a0f1e54d update bx to require c++14 and add compiler flag for bx when using MSVC 2022-06-26 17:22:23 +01:00
Sandy Carter
d725e78f86 bgfx: Add BGFX_MULTITHREADED option 2022-04-10 22:30:07 -04:00
Sandy Carter
dd2017c332 examples: Don't build on android by default 2022-03-30 17:09:46 -04:00
Sandy Carter
ead887f59b bx: Link with android log library 2022-03-30 17:09:46 -04:00
Sandy Carter
f184835827 glsl-optimizer: set libraries as STATIC explicitly 2022-03-30 17:09:31 -04:00
Tom Hulton-Harrop
a7ac0aa3ae add additional space around parens 2022-03-21 20:52:06 -04:00
Tom Hulton-Harrop
163661a07e update to have bgfx.cmake work with emscripten 2022-03-21 20:52:06 -04:00
loanselot
3168a4660e Merge pull request #103 from Ravbug/bx_debug_fix
BX_CONFIG_DEBUG via generator expression
2022-02-03 13:05:49 +03:00
Ravbug
b5879646bb Incorporate MrRobust's suggestion 2022-02-02 16:30:21 -05:00
loanselot
b44793b740 Merge pull request #114 from recisio/cmake_include_paths
CMake more precise includes path
2022-01-31 21:26:30 +03:00
e-erdal
9f3943b829 Link IOKit + CoreFoundation 2022-01-31 19:38:44 +03:00
e-erdal
f81d8ee146 Add IOKit for Metal backend 2022-01-31 19:16:08 +03:00
alexandrebeaudet
72bc1cf167 CMake more precise includes path (in order to use some functions externally) 2022-01-07 10:57:18 +01:00
Sandy Carter
7e7a6795a1 Use string compare for library type 2021-12-23 13:52:18 -05:00
Ravbug
93c9e73a42 Add checked & profile 2021-12-19 12:12:00 -08:00
Ravbug
0f1a5a91e6 Change BGFX_CONFIG_DEBUG to generator expression 2021-12-19 11:44:52 -08:00
Sandy Carter
a01e8e043f bgfx: Add debug config required in bx headers since bx is private 2021-10-30 10:14:58 -04:00
e-erdal
d3260f172c Add definition for BX_CONFIG_DEBUG 2021-10-28 11:06:14 +03:00
e-erdal
0133fc5cca Remove bounds 2021-10-23 06:39:13 +03:00
e-erdal
7f96ef20a7 Add example "fsr" 2021-10-18 10:26:07 +03:00
loanselot
7135af7412 Merge pull request #17 from mattparks/patch-2
Fix tools/geometryc iOS bundle gui identifier.
2021-08-06 00:28:41 +03:00
e-erdal
cf0d70f7d5 Add tinyexr to build files 2021-07-20 20:15:03 +03:00
Matthew Albrecht
d95a560b00 Fix tools/geometryc iOS bundle gui identifier. 2021-06-24 03:31:02 +01:00
Matthew Albrecht
9ae143b350 Use BGFX_DIR relative path when reading version. 2021-06-22 02:29:33 +01:00
loanselot1
305a4a3fa2 Remove OVR 2021-05-08 13:34:10 +03:00
Robin
6ab70b57cc Clean up code. 2021-05-07 16:52:47 -04:00
Robin A. P
c4f51387f0 Fix clang on WIN32 without MSVC 2021-05-07 16:52:47 -04:00
loanselot1
b856a1bd41 Update build files 2021-04-29 23:42:29 +03:00
Sandy Carter
f8f30ca887 bgfx: make bx and bimg private
This makes it so in shared mode, bx and bimg static libs aren't installed
2021-04-29 14:10:05 -04:00
Sandy Carter
1d3e7dd84f bimg: specify visibility of linked libs 2021-04-29 14:10:05 -04:00
yaz0r
66f18daf5c Update bgfx and build fix (#93)
* Bump bgfx

* Fix glslang build

* Fix project generation for tvOS
2020-11-09 01:58:03 -05:00
Sandy
22ffa2e003 Add option to build bgfx as shared lib (#79)
Closes #21
2020-06-11 06:19:41 -04:00
Sandy
b242db2681 fix using as a fetch content (add external project) for a out of source build (#89) 2020-05-11 11:45:22 -04:00
Sandy
6736f26db4 3rd party: Add webgpu cmake file (#84) 2020-05-11 04:08:02 -04:00
Matt Stevens
f4748dcc0a Remove BGFX_USE_DEBUG_SUFFIX, should use CMAKE_DEBUG_POSTFIX. (#81) 2020-05-10 22:38:06 -04:00
Matt Stevens
5af95aa5d5 Set bgfx PROJECT_VERSION from bgfx versioning scheme. (#80) 2020-05-10 22:34:20 -04:00