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
//! Custom "ImTextureID" info struct for Nabla UI backend purposes about resource sampler & texture descriptor binding's array indicies
394
+
//! must be 4 bytes size & alignment to pass imgui static asserts (it checks for contiguous blocks in memory to make sure it can do some memcpies)
394
395
struct SImResourceInfo
395
396
{
396
397
//! texture descriptor binding's array index
397
-
uint16_t textureID : 14,
398
-
399
-
//! sampler descriptor binding's array index, note its only meta for the texture for which we define operators to compare to (so you can specify which sampler ID should be used from the binding array)
Copy file name to clipboardExpand all lines: include/nbl/ext/ImGui/ImGui.h
+18-15Lines changed: 18 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,18 @@ namespace nbl::ext::imgui
9
9
classUIfinal : public core::IReferenceCounted
10
10
{
11
11
public:
12
-
//! Reserved font atlas indicies for backend textures & samplers descriptor binding's array, any attempt to hook user defined texture ID == FontAtlasTexId will result in undefined behaviour
12
+
//! Reserved font atlas indicies for default backend textures & samplers descriptor binding's array
//! Reserved indexes for default backend samplers descriptor binding's array - use only if you created your pipeline layout with createDefaultPipelineLayout. If you need more or custom samplers then create the pipeline layout yourself
16
+
enumclassDefaultSamplerIx : uint16_t
17
+
{
18
+
FONT_ATLAS = FontAtlasSamplerId,
19
+
USER,
20
+
21
+
COUNT,
22
+
};
23
+
15
24
structSMdiBuffer
16
25
{
17
26
//! composes memory available for the general purpose allocator to suballocate memory ranges
@@ -52,15 +61,6 @@ class UI final : public core::IReferenceCounted
52
61
bindingIx;
53
62
};
54
63
55
-
//! Reserved indexes for default backend samplers descriptor binding's array - use only if you created your pipeline layout with createDefaultPipelineLayout. If you need more or custom samplers then create the pipeline layout yourself
//! 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)
@@ -149,7 +149,7 @@ class UI final : public core::IReferenceCounted
149
149
voidsetContext(void* imguiContext);
150
150
151
151
//! creates default pipeline layout for the UI resources, "texturesCount" argument is textures descriptor binding's array size. Samplers are immutable and part of the created layout, SResourceParameters::DefaultSamplerIx::COUNT is the size of the samplers descriptor binding's array
0 commit comments