Compare commits

...

5 Commits

Author SHA1 Message Date
benji
eda300c870 default to no multithreading for emscripten 2026-02-15 19:11:20 -05:00
dependabot[bot]
fc0cada1eb build(deps): bump the submodules group with 2 updates (#11)
* build(deps): bump the submodules group with 2 updates

Bumps the submodules group with 2 updates: [bgfx](https://github.com/bkaradzic/bgfx) and [bx](https://github.com/bkaradzic/bx).
2026-02-02 20:46:15 -05:00
Branimir Karadžić
fbe794fa4c Update dependabot.yml (#12) 2026-02-02 03:34:56 +00:00
Branimir Karadžić
12dcf5f74c Update dependabot.yml 2026-02-02 03:31:44 +00:00
Branimir Karadžić
5a19118dec Update dependabot.yml 2026-02-02 03:31:11 +00:00
5 changed files with 18 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ cmake_dependent_option(
)
cmake_dependent_option(BGFX_WITH_WAYLAND "Use Wayland backend." ON "CMAKE_SYSTEM_NAME STREQUAL Linux" OFF)
option(BGFX_CUSTOM_TARGETS "Include convenience custom targets." ON)
option(BGFX_CONFIG_MULTITHREADED "Build bgfx with multithreaded configuration" ON)
cmake_dependent_option(BGFX_CONFIG_MULTITHREADED "Build bgfx with multithreaded configuration" ON "NOT CMAKE_SYSTEM_NAME STREQUAL Emscripten" OFF)
option(BGFX_CONFIG_RENDERER_WEBGPU "Enable the webgpu renderer" OFF)
option(BGFX_CONFIG_DEBUG_ANNOTATION "Enable gfx debug annotations (default: on in debug)" OFF)

2
bgfx

Submodule bgfx updated: 9ca7782405...011ede6b42

2
bx

Submodule bx updated: d8d7d13c85...36ad6131f4

View File

@@ -114,6 +114,7 @@ file(
${SPIRV_TOOLS}/source/val/validate_extensions.cpp
${SPIRV_TOOLS}/source/val/validate_function.cpp
${SPIRV_TOOLS}/source/val/validate_graph.cpp
${SPIRV_TOOLS}/source/val/validate_group.cpp
${SPIRV_TOOLS}/source/val/validate_id.cpp
${SPIRV_TOOLS}/source/val/validate_image.cpp
${SPIRV_TOOLS}/source/val/validate_instruction.cpp

View File

@@ -38,6 +38,20 @@ target_include_directories(
PRIVATE ${BGFX_DIR}/3rdparty/dawn
${BGFX_DIR}/3rdparty/dawn/src
)
if(UNIX
AND NOT APPLE
AND NOT EMSCRIPTEN
AND NOT ANDROID
)
target_include_directories(
shaderc
PRIVATE ${BGFX_DIR}/3rdparty/directx-headers/include/directx
${BGFX_DIR}/3rdparty/directx-headers/include
${BGFX_DIR}/3rdparty/directx-headers/include/wsl/stubs
)
endif()
if(BGFX_AMALGAMATED)
target_link_libraries(shaderc PRIVATE bgfx-shader)
endif()