Compare commits

...

39 Commits

Author SHA1 Message Date
loanselot
5205429de2 Merge pull request #79 from bkaradzic/ci-fix
Add definition type
2021-10-28 12:00:14 +03:00
e-erdal
25f2107994 Add definition type 2021-10-28 11:16:14 +03:00
loanselot
75b9076904 Merge pull request #78 from bkaradzic/dependabot/submodules/bgfx-932d2f2
Bump bgfx from `6573fc4` to `932d2f2`
2021-10-28 11:06:55 +03:00
loanselot
de4c88ac51 Merge pull request #76 from bkaradzic/dependabot/submodules/bimg-9e4d2b1
Bump bimg from `6693de0` to `9e4d2b1`
2021-10-28 11:06:48 +03:00
loanselot
d575656458 Merge pull request #75 from bkaradzic/dependabot/submodules/bx-51c3264
Bump bx from `11c3c5e` to `51c3264`
2021-10-28 11:06:41 +03:00
e-erdal
d3260f172c Add definition for BX_CONFIG_DEBUG 2021-10-28 11:06:14 +03:00
dependabot[bot]
f290d91828 Bump bgfx from 6573fc4 to 932d2f2
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `6573fc4` to `932d2f2`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](6573fc44a8...932d2f21e7)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-27 16:12:45 +00:00
dependabot[bot]
23577764fe Bump bimg from 6693de0 to 9e4d2b1
Bumps [bimg](https://github.com/bkaradzic/bimg) from `6693de0` to `9e4d2b1`.
- [Release notes](https://github.com/bkaradzic/bimg/releases)
- [Commits](6693de0e50...9e4d2b167f)

---
updated-dependencies:
- dependency-name: bimg
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-26 16:15:23 +00:00
dependabot[bot]
ec90e950f1 Bump bx from 11c3c5e to 51c3264
Bumps [bx](https://github.com/bkaradzic/bx) from `11c3c5e` to `51c3264`.
- [Release notes](https://github.com/bkaradzic/bx/releases)
- [Commits](11c3c5e615...51c3264846)

---
updated-dependencies:
- dependency-name: bx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-26 16:15:21 +00:00
loanselot
8a301010d7 Merge pull request #73 from bkaradzic/dependabot/submodules/bx-11c3c5e
Bump bx from `f324ffa` to `11c3c5e`
2021-10-23 07:15:32 +03:00
loanselot
29888bfb88 Merge pull request #72 from bkaradzic/dependabot/submodules/bgfx-6573fc4
Bump bgfx from `ffeba57` to `6573fc4`
2021-10-23 07:15:25 +03:00
e-erdal
0133fc5cca Remove bounds 2021-10-23 06:39:13 +03:00
dependabot[bot]
8a1d4fe3b1 Bump bx from f324ffa to 11c3c5e
Bumps [bx](https://github.com/bkaradzic/bx) from `f324ffa` to `11c3c5e`.
- [Release notes](https://github.com/bkaradzic/bx/releases)
- [Commits](f324ffad46...11c3c5e615)

---
updated-dependencies:
- dependency-name: bx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-22 16:11:49 +00:00
dependabot[bot]
3dc17e4d12 Bump bgfx from ffeba57 to 6573fc4
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `ffeba57` to `6573fc4`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](ffeba57b8a...6573fc44a8)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-21 14:19:10 +00:00
loanselot
83e5c829c1 Merge pull request #71 from bkaradzic/dependabot/submodules/bx-f324ffa
Bump bx from `ce8f0ec` to `f324ffa`
2021-10-21 17:18:30 +03:00
dependabot[bot]
b64b46c01b Bump bx from ce8f0ec to f324ffa
Bumps [bx](https://github.com/bkaradzic/bx) from `ce8f0ec` to `f324ffa`.
- [Release notes](https://github.com/bkaradzic/bx/releases)
- [Commits](ce8f0ec49b...f324ffad46)

---
updated-dependencies:
- dependency-name: bx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 16:16:08 +00:00
loanselot
b455d69ebc Merge pull request #69 from bkaradzic/dependabot/submodules/bgfx-ffeba57
Bump bgfx from `f99a6b4` to `ffeba57`
2021-10-18 10:27:03 +03:00
loanselot
4702973847 Merge pull request #70 from bkaradzic/dependabot/submodules/bx-ce8f0ec
Bump bx from `c7fc7b4` to `ce8f0ec`
2021-10-18 10:26:55 +03:00
e-erdal
7f96ef20a7 Add example "fsr" 2021-10-18 10:26:07 +03:00
dependabot[bot]
06ea813ee0 Bump bx from c7fc7b4 to ce8f0ec
Bumps [bx](https://github.com/bkaradzic/bx) from `c7fc7b4` to `ce8f0ec`.
- [Release notes](https://github.com/bkaradzic/bx/releases)
- [Commits](c7fc7b4ac6...ce8f0ec49b)

---
updated-dependencies:
- dependency-name: bx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-15 16:12:43 +00:00
dependabot[bot]
813fd9be03 Bump bgfx from f99a6b4 to ffeba57
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `f99a6b4` to `ffeba57`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](f99a6b4246...ffeba57b8a)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-15 16:12:40 +00:00
loanselot
417f8b82ef Merge pull request #59 from bkaradzic/dependabot/submodules/bgfx-f99a6b4
Bump bgfx from `73db386` to `f99a6b4`
2021-10-05 01:03:15 +03:00
dependabot[bot]
8ee2f954a2 Bump bgfx from 73db386 to f99a6b4
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `73db386` to `f99a6b4`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](73db386165...f99a6b4246)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 21:15:49 +00:00
loanselot
e3b3cb5909 Merge pull request #60 from bkaradzic/dependabot/submodules/bx-c7fc7b4
Bump bx from `9768d3a` to `c7fc7b4`
2021-10-05 00:15:03 +03:00
dependabot[bot]
6c16c52a4f Bump bx from 9768d3a to c7fc7b4
Bumps [bx](https://github.com/bkaradzic/bx) from `9768d3a` to `c7fc7b4`.
- [Release notes](https://github.com/bkaradzic/bx/releases)
- [Commits](9768d3a728...c7fc7b4ac6)

---
updated-dependencies:
- dependency-name: bx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 20:30:11 +00:00
loanselot
74592e610a Merge pull request #57 from bkaradzic/dependabot/submodules/bgfx-73db386
Bump bgfx from `89b6c25` to `73db386`
2021-10-01 23:08:16 +03:00
dependabot[bot]
b08be80829 Bump bgfx from 89b6c25 to 73db386
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `89b6c25` to `73db386`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](89b6c25c4a...73db386165)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-01 16:14:26 +00:00
loanselot
3095512f37 Merge pull request #56 from bkaradzic/dependabot/submodules/bgfx-89b6c25
Bump bgfx from `b8d2f01` to `89b6c25`
2021-09-30 15:56:39 +03:00
dependabot[bot]
d58b1d98c6 Bump bgfx from b8d2f01 to 89b6c25
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `b8d2f01` to `89b6c25`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](b8d2f01b98...89b6c25c4a)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 16:15:10 +00:00
loanselot
39387a2e04 Merge pull request #54 from bkaradzic/dependabot/submodules/bgfx-b8d2f01
Bump bgfx from `ad8e7eb` to `b8d2f01`
2021-09-27 22:48:59 +03:00
dependabot[bot]
20e0d21288 Bump bgfx from ad8e7eb to b8d2f01
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `ad8e7eb` to `b8d2f01`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](ad8e7eb974...b8d2f01b98)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 17:23:45 +00:00
loanselot
03435e280b Merge pull request #55 from bkaradzic/dependabot/submodules/bx-9768d3a
Bump bx from `e50536a` to `9768d3a`
2021-09-27 20:23:03 +03:00
dependabot[bot]
d0b1c186bd Bump bx from e50536a to 9768d3a
Bumps [bx](https://github.com/bkaradzic/bx) from `e50536a` to `9768d3a`.
- [Release notes](https://github.com/bkaradzic/bx/releases)
- [Commits](e50536ac03...9768d3a728)

---
updated-dependencies:
- dependency-name: bx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 16:14:03 +00:00
loanselot
b7b7cd7bdd Merge pull request #53 from bkaradzic/dependabot/submodules/bgfx-ad8e7eb
Bump bgfx from `79d1b4d` to `ad8e7eb`
2021-09-25 18:11:10 +03:00
dependabot[bot]
8a9d1c8a3e Bump bgfx from 79d1b4d to ad8e7eb
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `79d1b4d` to `ad8e7eb`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](79d1b4db56...ad8e7eb974)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-23 16:13:28 +00:00
loanselot
c96a694d24 Merge pull request #52 from bkaradzic/dependabot/submodules/bgfx-79d1b4d
Bump bgfx from `227ea05` to `79d1b4d`
2021-09-23 01:51:50 +03:00
dependabot[bot]
c29b926b2d Bump bgfx from 227ea05 to 79d1b4d
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `227ea05` to `79d1b4d`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](227ea05dee...79d1b4db56)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-22 16:12:07 +00:00
loanselot
fd8982e40c Merge pull request #51 from bkaradzic/dependabot/submodules/bgfx-227ea05
Bump bgfx from `1a001a6` to `227ea05`
2021-09-17 22:04:12 +03:00
dependabot[bot]
91a4b70161 Bump bgfx from 1a001a6 to 227ea05
Bumps [bgfx](https://github.com/bkaradzic/bgfx) from `1a001a6` to `227ea05`.
- [Release notes](https://github.com/bkaradzic/bgfx/releases)
- [Commits](1a001a67db...227ea05dee)

---
updated-dependencies:
- dependency-name: bgfx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-17 16:11:13 +00:00
11 changed files with 11 additions and 23 deletions

View File

@@ -75,11 +75,10 @@ jobs:
# Run CMake to generate project files
- name: Generate project files
run: |
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DCMAKE_INSTALL_PREFIX="${{ env.CMAKE_INSTALL_DIR }}" -DCMAKE_DEBUG_POSTFIX=d -DBGFX_BUILD_EXAMPLES=OFF -DBGFX_BUILD_TOOLS=ON -DBGFX_INSTALL=ON -DBGFX_AMALGAMATED=ON
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DCMAKE_INSTALL_PREFIX="${{ env.CMAKE_INSTALL_DIR }}" -DCMAKE_DEBUG_POSTFIX=d -DBGFX_BUILD_EXAMPLES=OFF -DBGFX_BUILD_TOOLS=ON -DBGFX_INSTALL=ON -DBGFX_AMALGAMATED=ON -DCMAKE_BUILD_TYPE=Release
# Build the install targets
- name: Build
run: |
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install --config Debug
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install --config Release
- uses: actions/upload-artifact@v2
with:

1
.gitignore vendored
View File

@@ -13,3 +13,4 @@ install_manifest.txt
generated/*
!generated/*.in
cmake_install.cmake
.cache/

View File

@@ -28,7 +28,6 @@ option( BGFX_INSTALL_EXAMPLES "Install examples and their runtimes." OF
option( BGFX_CUSTOM_TARGETS "Include convenience custom targets." ON )
option( BGFX_AMALGAMATED "Amalgamated bgfx build for faster compilation" OFF )
option( BX_AMALGAMATED "Amalgamated bx build for faster compilation" OFF )
option( BGFX_CONFIG_DEBUG "Enables debug configuration on all builds" OFF )
option( BGFX_CONFIG_RENDERER_WEBGPU "Enables the webgpu renderer" OFF )
set( BGFX_OPENGL_VERSION "" CACHE STRING "Specify minimum opengl version" )

2
bgfx

Submodule bgfx updated: 1a001a67db...932d2f21e7

2
bimg

Submodule bimg updated: 6693de0e50...9e4d2b167f

2
bx

Submodule bx updated: e50536ac03...51c3264846

View File

@@ -52,12 +52,6 @@ if(BGFX_CONFIG_RENDERER_WEBGPU)
endif()
endif()
# Enable BGFX_CONFIG_DEBUG in Debug configuration
target_compile_definitions( bgfx PRIVATE "$<$<CONFIG:Debug>:BGFX_CONFIG_DEBUG=1>" )
if(BGFX_CONFIG_DEBUG)
target_compile_definitions( bgfx PRIVATE BGFX_CONFIG_DEBUG=1)
endif()
if( NOT ${BGFX_OPENGL_VERSION} STREQUAL "" )
target_compile_definitions( bgfx PRIVATE BGFX_CONFIG_RENDERER_OPENGL_MIN_VERSION=${BGFX_OPENGL_VERSION} )
endif()

View File

@@ -67,9 +67,10 @@ target_compile_definitions( bx PUBLIC "__STDC_LIMIT_MACROS" )
target_compile_definitions( bx PUBLIC "__STDC_FORMAT_MACROS" )
target_compile_definitions( bx PUBLIC "__STDC_CONSTANT_MACROS" )
target_compile_definitions( bx PRIVATE "$<$<CONFIG:Debug>:BX_CONFIG_DEBUG=1>" )
if(BGFX_CONFIG_DEBUG)
target_compile_definitions( bx PRIVATE BX_CONFIG_DEBUG=1)
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
target_compile_definitions( bx PUBLIC "BX_CONFIG_DEBUG=1" )
else()
target_compile_definitions( bx PUBLIC "BX_CONFIG_DEBUG=0" )
endif()
# Additional dependencies on Unix

View File

@@ -274,6 +274,7 @@ if( BGFX_BUILD_EXAMPLES )
43-denoise
44-sss
45-bokeh
46-fsr
)
foreach( EXAMPLE ${BGFX_EXAMPLES} )

View File

@@ -21,13 +21,6 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/generated/shader.cpp.in
target_sources( bgfx-shader INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/generated/shader.cpp )
target_include_directories( bgfx-shader INTERFACE ${BGFX_DIR}/include )
add_library( bgfx-bounds INTERFACE )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/generated/bounds.cpp.in
${CMAKE_CURRENT_BINARY_DIR}/generated/bounds.cpp )
target_sources( bgfx-bounds INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/generated/bounds.cpp )
target_include_directories( bgfx-bounds INTERFACE ${BGFX_DIR}/include )
target_include_directories( bgfx-bounds INTERFACE ${BGFX_DIR}/examples/common )
# Frameworks required on OS X
if( ${CMAKE_SYSTEM_NAME} MATCHES Darwin )
find_library( COCOA_LIBRARY Cocoa )

View File

@@ -15,7 +15,7 @@ include( cmake/3rdparty/meshoptimizer.cmake )
add_executable( geometryc ${BGFX_DIR}/tools/geometryc/geometryc.cpp )
target_compile_definitions( geometryc PRIVATE "-D_CRT_SECURE_NO_WARNINGS" )
set_target_properties( geometryc PROPERTIES FOLDER "bgfx/tools" )
target_link_libraries( geometryc bx bgfx-bounds bgfx-vertexlayout meshoptimizer )
target_link_libraries( geometryc bx bgfx-vertexlayout meshoptimizer )
if( BGFX_CUSTOM_TARGETS )
add_dependencies( tools geometryc )
endif()