Skip to content

Commit b3719dd

Browse files
committed
Cleanups.
1 parent db996a1 commit b3719dd

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

include/nbl/video/IGPUCommandPool.h

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@ class IGPUCommandBuffer;
1515

1616
class NBL_API IGPUCommandPool : public core::IReferenceCounted, public IBackendObject
1717
{
18-
public:
18+
static inline constexpr uint32_t COMMAND_ALIGNMENT = 64u;
19+
20+
static inline constexpr uint32_t COMMAND_SEGMENT_ALIGNMENT = 64u;
1921
static inline constexpr uint32_t COMMAND_SEGMENT_SIZE = 128u << 10u;
2022

23+
static inline constexpr uint32_t MAX_COMMAND_SEGMENT_BLOCK_COUNT = 16u;
24+
static inline constexpr uint32_t COMMAND_SEGMENTS_PER_BLOCK = 256u;
25+
static inline constexpr uint32_t MIN_POOL_ALLOC_SIZE = COMMAND_SEGMENT_SIZE;
26+
27+
public:
2128
enum E_CREATE_FLAGS : uint32_t
2229
{
2330
ECF_NONE = 0x00,
@@ -26,18 +33,7 @@ class NBL_API IGPUCommandPool : public core::IReferenceCounted, public IBackendO
2633
ECF_PROTECTED_BIT = 0x04
2734
};
2835

29-
private:
30-
static inline constexpr uint32_t COMMAND_ALIGNMENT = 64u;
31-
32-
static inline constexpr uint32_t COMMAND_SEGMENT_ALIGNMENT = 64u;
33-
34-
static inline constexpr uint32_t MAX_COMMAND_SEGMENT_BLOCK_COUNT = 16u;
35-
static inline constexpr uint32_t COMMAND_SEGMENTS_PER_BLOCK = 256u;
36-
static inline constexpr uint32_t MIN_POOL_ALLOC_SIZE = COMMAND_SEGMENT_SIZE;
37-
38-
public:
3936
class CCommandSegment;
40-
4137
class alignas(COMMAND_ALIGNMENT) ICommand
4238
{
4339
friend class CCommandSegment;

0 commit comments

Comments
 (0)