Skip to content

Commit 5434256

Browse files
committed
Merge branch 'master' into nahim_complex_fft_workgroup
2 parents ee5b650 + d19d14a commit 5434256

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,6 @@
9696
[submodule "3rdparty/blake"]
9797
path = 3rdparty/blake
9898
url = [email protected]:Devsh-Graphics-Programming/BLAKE3.git
99+
[submodule "3rdparty/imguizmo"]
100+
path = 3rdparty/imguizmo
101+
url = [email protected]:Devsh-Graphics-Programming/ImGuizmo.git

3rdparty/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ if(NBL_BUILD_IMGUI)
292292
else()
293293
target_compile_options(implot PRIVATE -Wall -Wextra -pedantic -Werror -mavx2 -Ofast)
294294
endif()
295+
296+
set(IMGUIZMO_BUILD_EXAMPLE OFF)
297+
add_subdirectory(imguizmo EXCLUDE_FROM_ALL)
295298
endif()
296299

297300
add_library(aesGladman OBJECT
@@ -384,7 +387,7 @@ if (NBL_BUILD_MITSUBA_LOADER)
384387
list(APPEND NBL_3RDPARTY_TARGETS expat)
385388
endif()
386389
if (NBL_BUILD_IMGUI)
387-
list(APPEND NBL_3RDPARTY_TARGETS imgui)
390+
list(APPEND NBL_3RDPARTY_TARGETS imgui implot imguizmo)
388391
endif()
389392
if(ENABLE_HLSL)
390393
list(APPEND NBL_3RDPARTY_TARGETS HLSL)

3rdparty/imguizmo

Submodule imguizmo added at 6f4b219

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Below are some tasks that are open for contribution. If you start working on a t
5353
- Radix Sort (Vulkan Compute)
5454
- Bitonic Sort (Vulkan Compute)
5555
- Merge Path (Vulkan Compute)
56-
- [GPU flip fluid simulation task idea](https://www.youtube.com/watch?v=okQzAJM7LcE) -> discord [thread](https://discord.com/channels/318590007881236480/374061825454768129/1257988553112027186) for more info
56+
- [GPU flip fluid simulation task idea](https://www.youtube.com/watch?v=okQzAJM7LcE) -> discord [thread](https://discord.com/channels/318590007881236480/374061825454768129/1257988553112027186) for more info
57+
- [Exact Distance Transform on a GPU](https://docs.google.com/document/d/1iUF0ilFbWVWr5JfPtR8D8z7OdmbhUJXK-eoR_7u4-50/edit)
5758

5859
**[Issues](https://github.com/Devsh-Graphics-Programming/Nabla/issues) also count as free tasks.** We also have old issues from previous generation **[here](https://github.com/buildaworldnet/IrrlichtBAW/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)**.
5960

include/nbl/asset/asset_utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ struct SBasicViewParameters
4444
} PACK_STRUCT;
4545
#include "nbl/nblunpack.h"
4646

47+
static_assert(sizeof(SBasicViewParameters) == sizeof(float) * (4 * 4 + 2 * 3 * 4));
48+
4749
}}
4850

4951
#endif

include/nbl/video/utilities/CDumbPresentationOracle.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace nbl::video
1111
{
1212

13-
#if 0 // TODO: port
1413
class CDumbPresentationOracle : public IPresentationOracle
1514
{
1615
public:
@@ -19,8 +18,7 @@ class CDumbPresentationOracle : public IPresentationOracle
1918
reset();
2019
}
2120

22-
~CDumbPresentationOracle() {
23-
}
21+
~CDumbPresentationOracle() {}
2422

2523
inline void reportBeginFrameRecord() override
2624
{
@@ -53,16 +51,16 @@ class CDumbPresentationOracle : public IPresentationOracle
5351

5452
inline double getDeltaTimeInMicroSeconds() const {return dt;}
5553

56-
inline std::chrono::microseconds acquireNextImage(ISwapchain* swapchain, IGPUSemaphore* acquireSemaphore, IGPUFence* fence, uint32_t* imageNumber) override
54+
inline std::chrono::microseconds acquireNextImage(ISwapchain* swapchain, ISwapchain::SAcquireInfo info, uint32_t* imageNumber) override
5755
{
58-
swapchain->acquireNextImage(acquireSemaphore,fence,imageNumber);
56+
swapchain->acquireNextImage(info, imageNumber);
5957
reportEndFrameRecord();
6058
const auto retval = getNextPresentationTimeStamp();
6159
reportBeginFrameRecord();
6260
return retval;
6361
}
6462

65-
inline void present(ILogicalDevice* device, ISwapchain* swapchain, IQueue* queue, IGPUSemaphore* renderFinishedSemaphore, const uint32_t imageNumber) override
63+
inline void present(ILogicalDevice* device, ISwapchain* swapchain, ISwapchain::SAcquireInfo info, const uint32_t imageNumber) override
6664
{
6765
// literally cant do anything here in this dumb algorithm
6866
}
@@ -89,7 +87,6 @@ class CDumbPresentationOracle : public IPresentationOracle
8987
std::chrono::steady_clock::time_point lastTime;
9088
std::chrono::microseconds nextPresentationTimeStamp;
9189
};
92-
#endif
9390

9491
}
9592

include/nbl/video/utilities/IPresentationOracle.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
namespace nbl::video
1010
{
11-
#if 0 // TODO: port
1211
class IPresentationOracle
1312
{
1413
public:
@@ -17,13 +16,12 @@ class IPresentationOracle
1716
virtual void reportEndFrameRecord() = 0;
1817

1918
//! wraps image acquire, could inject timings and queries before and after to obtain frame presentation data
20-
virtual std::chrono::microseconds acquireNextImage(ISwapchain* swapchain, IGPUSemaphore* acquireSemaphore, IGPUFence* fence, uint32_t* imageNumber) = 0;
19+
virtual std::chrono::microseconds acquireNextImage(ISwapchain* swapchain, ISwapchain::SAcquireInfo info, uint32_t* imageNumber) = 0;
2120

2221
// TODO: Actually start using this in CommonAPI of the examples
2322
//! wraps image acquire, could inject timings and queries before and after to obtain frame presentation data
24-
virtual void present(nbl::video::ILogicalDevice* device, nbl::video::ISwapchain* swapchain, nbl::video::IQueue* queue, nbl::video::IGPUSemaphore* renderFinishedSemaphore, const uint32_t imageNumer) = 0;
23+
virtual void present(ILogicalDevice* device, ISwapchain* swapchain, ISwapchain::SAcquireInfo info, const uint32_t imageNumber) = 0;
2524
};
26-
#endif
2725
}
2826

2927
#endif // __NBL_VIDEO_I_PRESENTATION_ORACLE__H_INCLUDED__

src/nbl/ext/ImGui/ImGui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ namespace nbl::ext::imgui
766766
for (auto const& subscriber : m_subscribers)
767767
subscriber.listener();
768768

769-
ImGui::Render();
769+
ImGui::Render(); // note it doesn't touch GPU or graphics API at all, internal call - open the function def for more details
770770
}
771771

772772
void UI::BeginWindow(char const* windowName)

0 commit comments

Comments
 (0)