You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove system creation from the UI, take everything it requires from the constructor, do also another clean-up, put stuff into nice creation parameters struct, remove unnecessary font adjusting static method + a few IO variables we were setting to their default values anyway, add more comments for users, update examples_tests submodule
uint32_t subpassIx = 0u; //! optional, default value if not provided
34
+
video::IGPUDescriptorSetLayout* const descriptorSetLayout = nullptr; //! optional, default layout used if not provided [STILL TODO, currently its assumed its not nullptr!]
35
+
video::IGPUPipelineCache* const pipelineCache = nullptr; //! optional, no cache used if not provided
36
+
typename MDI::COMPOSE_T* const streamingMDIBuffer = nullptr; //! optional, default MDI buffer allocated if not provided
26
37
};
27
38
28
39
//! parameters which may change every frame, used with the .update call to interact with ImGuiIO; we require a very *required* minimum - if you need to cover more IO options simply get the IO with ImGui::GetIO() to customize them (they all have default values you can change before calling the .update)
@@ -44,17 +55,17 @@ class UI final : public core::IReferenceCounted
//! Nabla ImGUI backend reserves this index for font atlas, any attempt to hook user defined texture within the index will cause runtime error [TODO: could have a setter & getter to control the default & currently hooked font texture ID and init 0u by default]
51
62
_NBL_STATIC_INLINE_CONSTEXPR auto NBL_FONT_ATLAS_TEX_ID = 0u;
52
63
53
64
//! update ImGuiIO & record ImGUI *cpu* draw command lists, call it before .render
54
-
boolupdate(const S_UPDATE_PARAMETERS params);
65
+
boolupdate(const S_UPDATE_PARAMETERS& params);
55
66
56
67
//! updates mapped mdi buffer & records *gpu* draw commands, handles overflows for mdi allocation failure cases (pop & submit)
0 commit comments