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
replace StreamingTransientDataBufferST with GeneralpurposeAddressAllocator host allocator + LinearAddressAllocatorST sub-allocator combo & use allocator type traits to handle them, update examples_tests submodule, leave some TODO comments
Copy file name to clipboardExpand all lines: include/nbl/ext/ImGui/ImGui.h
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ class UI final : public core::IReferenceCounted
11
11
public:
12
12
structMDI
13
13
{
14
-
using COMPOSE_T = nbl::video::StreamingTransientDataBufferST<nbl::core::allocator<uint8_t>>;
14
+
using COMPOSE_T = nbl::video::IGPUBuffer; //! composes memory available for the allocator which allocates submemory ranges
15
+
using ALLOCATOR_TRAITS_T = nbl::core::address_allocator_traits<nbl::core::GeneralpurposeAddressAllocator<uint32_t>>; //! traits for MDI buffer allocator - requests memory range from the compose memory
16
+
using SUBALLOCATOR_TRAITS_T = nbl::core::address_allocator_traits<nbl::core::LinearAddressAllocatorST<uint32_t>>; //! traits for MDI buffer suballocator - fills the data given the mdi allocator memory request
15
17
16
18
enum E_BUFFER_CONTENT : uint8_t
17
19
{
@@ -23,7 +25,8 @@ class UI final : public core::IReferenceCounted
@@ -58,7 +61,7 @@ class UI final : public core::IReferenceCounted
58
61
uint32_t subpassIx = 0u; //! optional, default value used if not provided
59
62
S_RESOURCE_PARAMETERS resources; //! optional, default parameters used if not provided
60
63
nbl::video::IGPUPipelineCache* const pipelineCache = nullptr; //! optional, no cache used if not provided
61
-
typename MDI::COMPOSE_T* conststreamingMDIBuffer = nullptr; //! optional, default MDI buffer allocated if not provided
64
+
typename MDI::COMPOSE_T* conststreamingBuffer = nullptr;//! optional, default MDI buffer allocated if not provided
62
65
};
63
66
64
67
//! 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)
@@ -109,7 +112,10 @@ class UI final : public core::IReferenceCounted
0 commit comments