Skip to content

Commit abc7b52

Browse files
authored
Merge branch 'master' into przemog_occlusion_culling
2 parents 0aae4dc + f6b2798 commit abc7b52

File tree

74 files changed

+2231
-1132
lines changed

Some content is hidden

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

74 files changed

+2231
-1132
lines changed

.gitmodules

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[submodule "3rdparty/glslang"]
88
path = 3rdparty/glslang
99
url = https://github.com/devshgraphicsprogramming/glslang.git
10-
branch = nabla
10+
branch = master
1111
[submodule "3rdparty/shaderc"]
1212
path = 3rdparty/shaderc
1313
url = https://github.com/google/shaderc.git
@@ -20,7 +20,7 @@
2020
[submodule "3rdparty/spirv_cross"]
2121
path = 3rdparty/spirv_cross
2222
url = https://github.com/devshgraphicsprogramming/SPIRV-Cross.git
23-
branch = nabla
23+
branch = master
2424
[submodule "3rdparty/zlib"]
2525
path = 3rdparty/zlib
2626
url = https://github.com/madler/zlib.git
@@ -99,3 +99,9 @@
9999
[submodule "3rdparty/volk"]
100100
path = 3rdparty/volk
101101
url = https://github.com/zeux/volk.git
102+
[submodule "3rdparty/simdjson"]
103+
path = 3rdparty/simdjson
104+
url = https://github.com/simdjson/simdjson
105+
[submodule "3rdparty/glTFSampleModels"]
106+
path = 3rdparty/glTFSampleModels
107+
url = https://github.com/KhronosGroup/glTF-Sample-Models

3rdparty/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ set(NBL_3RDPARTY_TARGETS
471471
SPIRV
472472
Iex
473473
IexMath
474-
SPIRV-Tools
474+
SPIRV-Tools-static
475475
SPIRV-Tools-opt )
476476
#TODO insert more targets that are conditionally built
477477
if (NBL_BUILD_MITSUBA_LOADER)

3rdparty/SPIRV-Tools

Submodule SPIRV-Tools updated 866 files

3rdparty/glslang

3rdparty/shaderc

Submodule shaderc updated 79 files

3rdparty/spirv_cross

Submodule spirv_cross updated 159 files

examples_tests/20.Megatexture/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,18 @@ struct commit_t
149149
};
150150
STextureData getTextureData(core::vector<commit_t>& _out_commits, const asset::ICPUImage* _img, asset::ICPUVirtualTexture* _vt, asset::ISampler::E_TEXTURE_CLAMP _uwrap, asset::ISampler::E_TEXTURE_CLAMP _vwrap, asset::ISampler::E_TEXTURE_BORDER_COLOR _borderColor)
151151
{
152-
const auto& extent = _img->getCreationParameters().extent;
152+
auto img = _vt->createUpscaledImage(_img);
153+
const auto& extent = img->getCreationParameters().extent;
153154

154-
auto imgAndOrigSz = asset::ICPUVirtualTexture::createPoTPaddedSquareImageWithMipLevels(_img, _uwrap, _vwrap, _borderColor);
155+
auto imgAndOrigSz = asset::ICPUVirtualTexture::createPoTPaddedSquareImageWithMipLevels(img.get(), _uwrap, _vwrap, _borderColor);
155156

156157
asset::IImage::SSubresourceRange subres;
157158
subres.baseMipLevel = 0u;
158159
subres.levelCount = core::findLSB(core::roundDownToPoT<uint32_t>(std::max(extent.width, extent.height))) + 1;
159160
subres.baseArrayLayer = 0u;
160161
subres.layerCount = 1u;
161162

162-
auto addr = _vt->alloc(_img->getCreationParameters().format, imgAndOrigSz.second, subres, _uwrap, _vwrap);
163+
auto addr = _vt->alloc(img->getCreationParameters().format, imgAndOrigSz.second, subres, _uwrap, _vwrap);
163164
commit_t cm{ addr, std::move(imgAndOrigSz.first), subres, _uwrap, _vwrap, _borderColor };
164165

165166
_out_commits.push_back(cm);

examples_tests/22.RaytracedAO/Renderer.cpp

Lines changed: 350 additions & 245 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)