Skip to content

Commit e4e0f44

Browse files
minor narrowing of queue family indices
1 parent 4cf0a2b commit e4e0f44

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/nbl/video/IGPUCommandBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class NBL_API2 IGPUCommandBuffer : public IBackendObject
3939
inline IGPUCommandPool::BUFFER_LEVEL getLevel() const { return m_level; }
4040

4141
inline IGPUCommandPool* getPool() const { return m_cmdpool.get(); }
42-
inline uint32_t getQueueFamilyIndex() const { return m_cmdpool->getQueueFamilyIndex(); }
42+
inline uint8_t getQueueFamilyIndex() const { return m_cmdpool->getQueueFamilyIndex(); }
4343

4444
/*
4545
CommandBuffer Lifecycle Tracking in Nabla:

include/nbl/video/IGPUCommandPool.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class IGPUCommandPool : public IBackendObject
4646
};
4747
inline core::bitflag<CREATE_FLAGS> getCreationFlags() const { return m_flags; }
4848

49-
inline uint32_t getQueueFamilyIndex() const { return m_familyIx; }
49+
inline uint8_t getQueueFamilyIndex() const { return m_familyIx; }
5050

5151
enum class BUFFER_LEVEL : uint8_t
5252
{
@@ -153,7 +153,7 @@ class IGPUCommandPool : public IBackendObject
153153
class CCopyAccelerationStructureToOrFromMemoryCmd; // for both vkCmdCopyAccelerationStructureToMemoryKHR and vkCmdCopyMemoryToAccelerationStructureKHR
154154

155155
protected:
156-
IGPUCommandPool(core::smart_refctd_ptr<const ILogicalDevice>&& dev, const core::bitflag<CREATE_FLAGS> _flags, const uint32_t _familyIx)
156+
IGPUCommandPool(core::smart_refctd_ptr<const ILogicalDevice>&& dev, const core::bitflag<CREATE_FLAGS> _flags, const uint8_t _familyIx)
157157
: IBackendObject(std::move(dev)), m_scratchAlloc(nullptr,0u,0u,_NBL_SIMD_ALIGNMENT,SCRATCH_MEMORY_SIZE), m_flags(_flags), m_familyIx(_familyIx) {}
158158
virtual ~IGPUCommandPool() = default;
159159

@@ -449,7 +449,7 @@ class IGPUCommandPool : public IBackendObject
449449
};
450450

451451
const core::bitflag<CREATE_FLAGS> m_flags;
452-
const uint32_t m_familyIx;
452+
const uint8_t m_familyIx;
453453
std::atomic_uint64_t m_resetCount = 0;
454454
CCommandSegmentListPool m_commandListPool;
455455
};

0 commit comments

Comments
 (0)