Skip to content

Commit 1f06c53

Browse files
author
devsh
committed
inline is important for DLL exports/imports (it actually does something!)
1 parent 6ae203b commit 1f06c53

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/nbl/video/utilities/IUtilities.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace nbl::video
1919

2020
class NBL_API2 IUtilities : public core::IReferenceCounted
2121
{
22-
protected:
22+
protected:
2323
constexpr static inline uint32_t maxStreamingBufferAllocationAlignment = 64u*1024u; // if you need larger alignments then you're not right in the head
2424
constexpr static inline uint32_t minStreamingBufferAllocationSize = 1024u;
2525
constexpr static inline uint32_t OptimalCoalescedInvocationXferSize = sizeof(uint32_t);
@@ -43,9 +43,8 @@ class NBL_API2 IUtilities : public core::IReferenceCounted
4343

4444
IUtilities() = delete;
4545

46-
public:
47-
48-
static core::smart_refctd_ptr<IUtilities> create(core::smart_refctd_ptr<ILogicalDevice>&& device, nbl::system::logger_opt_smart_ptr&& logger = nullptr, const uint32_t downstreamSize = 0x4000000u, const uint32_t upstreamSize = 0x4000000u)
46+
public:
47+
static inline core::smart_refctd_ptr<IUtilities> create(core::smart_refctd_ptr<ILogicalDevice>&& device, nbl::system::logger_opt_smart_ptr&& logger = nullptr, const uint32_t downstreamSize = 0x4000000u, const uint32_t upstreamSize = 0x4000000u)
4948
{
5049
auto physicalDevice = device->getPhysicalDevice();
5150
const auto& limits = physicalDevice->getLimits();

0 commit comments

Comments
 (0)