Skip to content

Commit e7cdf31

Browse files
committed
Resolved conflicts
2 parents 4d26295 + 50e2362 commit e7cdf31

File tree

786 files changed

+11543
-8200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

786 files changed

+11543
-8200
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug report
3+
about: Report a bug or problem encountered while using Nabla
4+
labels: bug
5+
---
6+
7+
## Describe the bug
8+
<!-- A clear and concise description of what the bug is. -->
9+
10+
## Steps to Reproduce
11+
<!-- Please describe how the bug you've encountered can be reproduced -->
12+
13+
## Expected vs observed behavior
14+
<!-- Clearly describe what you get, and how it goes across your expectations. -->
15+
16+
## Environment
17+
<!-- Please provide the following information -->
18+
19+
* **OS:**
20+
* **CPU:**
21+
* **GPU:**
22+
* **GPU driver version:**
23+
* **Compiler:**
24+
* **branch:**
25+
* **commit hash:**
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
labels: enhancement
5+
---
6+
7+
## Description
8+
<!-- Please describe your suggestion -->
9+
10+
## Description of the related problem
11+
<!-- Is your feature request related to a problem? Please provide
12+
A clear and concise description of what the problem is. -->
13+
14+
## Solution proposal
15+
<!-- A clear and concise description of what you want to happen. -->
16+
17+
## Additional context
18+
<!-- Add any other context or screenshots about the feature request here. -->
19+
20+
21+

.github/pull_request_template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Description
2+
<!-- Describe what problem this is solving, and how it's solved. -->
3+
4+
## Testing
5+
<!-- Explain how this change was tested. -->
6+
7+
## TODO list:
8+
<!-- A list of things that have to be finished before this PR can be merged -->
9+
10+
<!--
11+
By creating this pull request into Nabla, you agree to release all your past (even from previous commits) and present contributions in the Nabla repository under the Apache 2.0 license. If you're not the sole contributor, ensure that all contributors have signed the CLA agreeing to this.
12+
-->
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: repo_mirroring
2+
3+
on:
4+
schedule:
5+
- cron: "*/60 * * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
repo-sync:
10+
runs-on: self-hosted
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
- name: repo-sync-master
16+
uses: repo-sync/github-sync@v2
17+
with:
18+
source_repo: "buildaworldnet/IrrlichtBAW"
19+
source_branch: "master"
20+
destination_branch: "master_irrlichtbaw"
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
- name: repo-sync-shader-pipeline
23+
uses: repo-sync/github-sync@v2
24+
with:
25+
source_repo: "buildaworldnet/IrrlichtBAW"
26+
source_branch: "shader_pipeline"
27+
destination_branch: "shader_pipeline_irrlichtbaw"
28+
github_token: ${{ secrets.GITHUB_TOKEN }}

3rdparty/CMakeLists.txt

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
# Copyright (c) 2019 DevSH Graphics Programming Sp. z O.O.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
1+
# Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
2+
# This file is part of the "Nabla Engine".
3+
# For conditions of distribution and use, see copyright notice in nabla.h
144

155
include(../cmake/common.cmake)
166

@@ -178,8 +168,8 @@ set(BUILD_STATIC_LIBS ${_OLD_BUILD_STATIC_LIBS})
178168
set(BUILD_TESTING ${_OLD_BUILD_TESTING})
179169

180170
#gli
181-
option(_IRR_COMPILE_WITH_GLI_ "Build with GLI library" ON)
182-
if(_IRR_COMPILE_WITH_GLI_)
171+
option(_NBL_COMPILE_WITH_GLI_ "Build with GLI library" ON)
172+
if(_NBL_COMPILE_WITH_GLI_)
183173
set(_OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
184174
set(_OLD_BUILD_STATIC_LIBS ${BUILD_STATIC_LIBS})
185175
set(_OLD_BUILD_TESTING ${BUILD_TESTING})
@@ -245,13 +235,13 @@ add_library(aesGladman OBJECT
245235
aesGladman/sha1.c
246236
)
247237

248-
if (IRR_BUILD_CEGUI) # I absolutely hate and despise GLM
238+
if (NBL_BUILD_CEGUI) # I absolutely hate and despise GLM
249239
set(_OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
250240
set(_OLD_BUILD_STATIC_LIBS ${BUILD_STATIC_LIBS})
251241
set(BUILD_SHARED_LIBS OFF)
252242
set(BUILD_STATIC_LIBS OFF)
253243
option(GLM_TEST_ENABLE_CXX_14 "Enable C++ 14" ON)
254-
if (IRR_FAST_MATH)
244+
if (NBL_FAST_MATH)
255245
option(GLM_TEST_ENABLE_FAST_MATH "Enable fast math optimizations" ON)
256246
endif()
257247
option(GLM_TEST_ENABLE_SIMD_SSE4_2 "Enable SSE 4.2 optimizations" ON)
@@ -267,7 +257,7 @@ option(GLM_TEST_ENABLE "Build unit tests" OFF)
267257
set(BUILD_SHARED_LIBS ${_OLD_BUILD_SHARED_LIBS})
268258
set(BUILD_STATIC_LIBS ${_OLD_BUILD_STATIC_LIBS})
269259

270-
if (IRR_BUILD_MITSUBA_LOADER)
260+
if (NBL_BUILD_MITSUBA_LOADER)
271261
update_git_submodule(./libexpat)
272262

273263
option(BUILD_tools "EXPAT: build the xmlwf tool for expat library" OFF)
@@ -290,7 +280,7 @@ if (IRR_BUILD_MITSUBA_LOADER)
290280
set(MITSUBA_LOADER_DEPENDENT_LIBS ${MITSUBA_LOADER_DEPENDENT_LIBS} PARENT_SCOPE)
291281
endif()
292282

293-
if (IRR_BUILD_CEGUI)
283+
if (NBL_BUILD_CEGUI)
294284
update_git_submodule(./libexpat)
295285
update_git_submodule(./CEGUI/pcre)
296286
update_git_submodule(./CEGUI/glew)
@@ -417,7 +407,7 @@ if (IRR_BUILD_CEGUI)
417407
)
418408
endif()
419409

420-
if (IRR_BUILD_RADEON_RAYS)
410+
if (NBL_BUILD_RADEON_RAYS)
421411
update_git_submodule(./radeonrays)
422412

423413
option(RR_NO_TESTS "RADEON_RAYS: don't do tests" ON)
@@ -437,7 +427,7 @@ if (IRR_BUILD_RADEON_RAYS)
437427
set(RADEON_RAYS_DEPENDENT_LIBS ${RADEON_RAYS_DEPENDENT_LIBS} PARENT_SCOPE)
438428
endif()
439429

440-
if (IRR_BUILD_BULLET)
430+
if (NBL_BUILD_BULLET)
441431
update_git_submodule(./bullet3)
442432
set(BULLET_INCLUDE_PATH
443433
${CMAKE_CURRENT_SOURCE_DIR}/bullet3/src
@@ -447,11 +437,11 @@ if (IRR_BUILD_BULLET)
447437
endif()
448438

449439

450-
if (IRR_COMPILE_WITH_CUDA)
440+
if (NBL_COMPILE_WITH_CUDA)
451441
update_git_submodule(./jitify)
452442
endif()
453443

454-
set(IRR_3RDPARTY_TARGETS
444+
set(NBL_3RDPARTY_TARGETS
455445
lzma
456446
lz4
457447
aesGladman
@@ -476,13 +466,13 @@ set(IRR_3RDPARTY_TARGETS
476466
SPIRV-Tools
477467
SPIRV-Tools-opt )
478468
#TODO insert more targets that are conditionally built
479-
if (IRR_BUILD_MITSUBA_LOADER)
480-
list(APPEND IRR_3RDPARTY_TARGETS expat)
469+
if (NBL_BUILD_MITSUBA_LOADER)
470+
list(APPEND NBL_3RDPARTY_TARGETS expat)
481471
endif()
482472
if(ENABLE_HLSL)
483-
list(APPEND IRR_3RDPARTY_TARGETS HLSL)
473+
list(APPEND NBL_3RDPARTY_TARGETS HLSL)
484474
endif()
485-
foreach(trgt IN LISTS IRR_3RDPARTY_TARGETS)
475+
foreach(trgt IN LISTS NBL_3RDPARTY_TARGETS)
486476
set_property(TARGET ${trgt} PROPERTY
487477
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
488478
endforeach()

CMakeLists.txt

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
# Copyright (c) 2019 DevSH Graphics Programming Sp. z O.O.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
1+
# Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
2+
# This file is part of the "Nabla Engine".
3+
# For conditions of distribution and use, see copyright notice in nabla.h
154

165
cmake_minimum_required(VERSION 3.16)
176
#policies
@@ -29,27 +18,27 @@ else()
2918
message(STATUS "Vulkan driver is not enabled")
3019
endif()
3120

32-
option(IRR_COMPILE_WITH_CUDA "Compile with CUDA interop?" OFF)
21+
option(NBL_COMPILE_WITH_CUDA "Compile with CUDA interop?" OFF)
3322

3423
# CUDA test
3524
include(CheckLanguage)
3625
check_language(CUDA)
3726
#if(NOT CMAKE_CUDA_COMPILER OR CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "9.0")
3827
if(NOT CMAKE_CUDA_COMPILER)
39-
if (IRR_COMPILE_WITH_CUDA)
28+
if (NBL_COMPILE_WITH_CUDA)
4029
#message(WARNING "CUDA not found or version (${CMAKE_CUDA_COMPILER_VERSION}) lower than 9.0 found, version 9.0+ needed for C++14 support.")
4130
message(WARNING "CUDA not found.")
4231
endif()
4332
else()
44-
if (IRR_COMPILE_WITH_CUDA)
33+
if (NBL_COMPILE_WITH_CUDA)
4534
enable_language(CUDA)
4635
else()
47-
message(STATUS "CUDA version 9.0+ found, you can enable the IRR_COMPILE_WITH_CUDA option.")
36+
message(STATUS "CUDA version 9.0+ found, you can enable the NBL_COMPILE_WITH_CUDA option.")
4837
endif()
4938
endif()
5039

5140
#
52-
get_filename_component(IRR_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
41+
get_filename_component(NBL_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
5342

5443
# Configure CCache if available
5544
find_program(CCACHE_FOUND ccache)
@@ -67,7 +56,7 @@ set(CMAKE_CODELITE_USE_TARGETS ON CACHE BOOL "")
6756
set(CMAKE_CXX_STANDARD 17)
6857
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6958
# Cause CUDA is a special snowflake
70-
if (IRR_COMPILE_WITH_CUDA)
59+
if (NBL_COMPILE_WITH_CUDA)
7160
set(CMAKE_CUDA_STANDARD 14)
7261
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
7362
endif()
@@ -84,17 +73,17 @@ if(NOT CMAKE_BUILD_TYPE)
8473
endif()
8574

8675
if (DEFINED ENV{NUMBER_OF_PROCESSORS})
87-
set(IRR_PARALLEL_BUILD_JOBS $ENV{NUMBER_OF_PROCESSORS})
76+
set(NBL_PARALLEL_BUILD_JOBS $ENV{NUMBER_OF_PROCESSORS})
8877
else()
89-
set(IRR_PARALLEL_BUILD_JOBS 8)
78+
set(NBL_PARALLEL_BUILD_JOBS 8)
9079
endif()
9180

9281
macro(irr_adjust_flags)
93-
option(IRR_GCC_SANITIZE_ADDRESS OFF)
94-
option(IRR_GCC_SANITIZE_THREAD OFF)
82+
option(NBL_GCC_SANITIZE_ADDRESS OFF)
83+
option(NBL_GCC_SANITIZE_THREAD OFF)
9584

9685
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
97-
if (NOT IRR_BUILD_CEGUI)
86+
if (NOT NBL_BUILD_CEGUI)
9887
add_compile_options(-fno-exceptions)
9988
endif()
10089

@@ -121,10 +110,10 @@ macro(irr_adjust_flags)
121110
#"$<$<CONFIG:RELEASE>:-O3>" # added by default and apparently cmake is not clever enough to filter duplicates for this one
122111
"$<$<CONFIG:RELEASE>:-fexpensive-optimizations>"
123112
)
124-
if (IRR_GCC_SANITIZE_ADDRESS)
113+
if (NBL_GCC_SANITIZE_ADDRESS)
125114
add_compile_options(-fsanitize=address)
126115
endif()
127-
if (IRR_GCC_SANITIZE_THREAD)
116+
if (NBL_GCC_SANITIZE_THREAD)
128117
add_compile_options(-fsanitize=thread)
129118
endif()
130119
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.1)
@@ -190,46 +179,46 @@ macro(irr_adjust_definitions)
190179
endmacro()
191180

192181
if(WIN32)
193-
set(_IRR_PLATFORM_WINDOWS_ 1)
182+
set(_NBL_PLATFORM_WINDOWS_ 1)
194183
elseif(UNIX)
195-
set(_IRR_PLATFORM_LINUX_ 1)
184+
set(_NBL_PLATFORM_LINUX_ 1)
196185
endif()
197186

198187
#uncomment in the future
199-
#option(IRR_TARGET_ARCH_ARM "Build for ARM?" OFF)
188+
#option(NBL_TARGET_ARCH_ARM "Build for ARM?" OFF)
200189

201-
option(IRR_COMPILE_WITH_OPENGL "Compile with OpenGL backend?" ON)
202-
option(IRR_COMPILE_WITH_OPENCL "Compile with OpenCL interop?" ON)
190+
option(NBL_COMPILE_WITH_OPENGL "Compile with OpenGL backend?" ON)
191+
option(NBL_COMPILE_WITH_OPENCL "Compile with OpenCL interop?" ON)
203192

204-
option(IRR_PCH "Enable pre-compiled header" ON)
193+
option(NBL_PCH "Enable pre-compiled header" ON)
205194

206-
option(IRR_FAST_MATH "Enable fast low-precision math" ON)
195+
option(NBL_FAST_MATH "Enable fast low-precision math" ON)
207196

208-
option(IRR_BUILD_EXAMPLES "Enable building examples" ON)
197+
option(NBL_BUILD_EXAMPLES "Enable building examples" ON)
209198

210-
option(IRR_BUILD_TOOLS "Enable building tools (just convert2BAW as for now)" ON)
199+
option(NBL_BUILD_TOOLS "Enable building tools (just convert2BAW as for now)" ON)
211200

212-
option(IRR_BUILD_MITSUBA_LOADER "Enable irr::ext::MitsubaLoader?" ON)
201+
option(NBL_BUILD_MITSUBA_LOADER "Enable irr::ext::MitsubaLoader?" ON)
213202

214-
option(IRR_BUILD_RADEON_RAYS "Enable irr::ext::RadeonRays?" OFF)
203+
option(NBL_BUILD_RADEON_RAYS "Enable irr::ext::RadeonRays?" OFF)
215204

216-
if (IRR_COMPILE_WITH_CUDA)
205+
if (NBL_COMPILE_WITH_CUDA)
217206
find_package(OPTIX)
218207
if (OPTIX_FOUND)
219-
message(STATUS "CUDA and OptiX found, you can enable IRR_BUILD_OPTIX")
208+
message(STATUS "CUDA and OptiX found, you can enable NBL_BUILD_OPTIX")
220209
else()
221210
message(STATUS "OptiX not found")
222211
endif()
223-
option(IRR_BUILD_OPTIX "Enable irr::ext::OptiX?" OFF)
212+
option(NBL_BUILD_OPTIX "Enable irr::ext::OptiX?" OFF)
224213
else()
225-
message(STATUS "Because IRR_COMPILE_WITH_CUDA is not enabled, the IRR_BUILD_OPTIX option will be hidden.")
214+
message(STATUS "Because NBL_COMPILE_WITH_CUDA is not enabled, the NBL_BUILD_OPTIX option will be hidden.")
226215
endif()
227216

228-
option(IRR_BUILD_CEGUI "Enable CEGUI building and integration?" OFF)
217+
option(NBL_BUILD_CEGUI "Enable CEGUI building and integration?" OFF)
229218

230-
option(IRR_BUILD_BULLET "Enable Bullet Physics building and integration?" OFF)
219+
option(NBL_BUILD_BULLET "Enable Bullet Physics building and integration?" OFF)
231220

232-
option(IRR_BUILD_DOCS "Enable building documentation?" ON)
221+
option(NBL_BUILD_DOCS "Enable building documentation?" ON)
233222

234223
set(THIRD_PARTY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/3rdparty")
235224
set(THIRD_PARTY_BINARY_DIR "${PROJECT_BINARY_DIR}/3rdparty")
@@ -240,23 +229,23 @@ execute_process(COMMAND git submodule sync --recursive
240229
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
241230
add_subdirectory(${THIRD_PARTY_SOURCE_DIR})
242231

243-
OPTION(IRR_EMBED_BUILTIN_RESOURCES "Embed built-in resources?" ON)
232+
OPTION(NBL_EMBED_BUILTIN_RESOURCES "Embed built-in resources?" ON)
244233

245234

246235
add_subdirectory(src/irr) # Irrlicht code | Moved cmakelists.txt from source/Irrlicht to src/irr
247236

248237

249238

250-
if(IRR_BUILD_TOOLS)
239+
if(NBL_BUILD_TOOLS)
251240
add_subdirectory(tools) # convert2BAW
252241
endif()
253242

254243
add_subdirectory(ext)
255244

256-
if(IRR_BUILD_EXAMPLES)
245+
if(NBL_BUILD_EXAMPLES)
257246
add_subdirectory(examples_tests)
258247
endif()
259248

260-
if(IRR_BUILD_DOCS)
249+
if(NBL_BUILD_DOCS)
261250
add_subdirectory(docs)
262251
endif()

0 commit comments

Comments
 (0)