@@ -49,7 +49,7 @@ class SubAllocatedDescriptorSet : public core::IReferenceCounted
49
49
50
50
m_addressAllocator = AddrAllocator (
51
51
_reservedAllocator.allocate (AddressAllocator::reserved_size (maxAllocatableAlignment, static_cast <size_type>(allocatableDescriptors), args...), _NBL_SIMD_ALIGNMENT),
52
- static_cast <size_type>(allocatableDescriptors ), 0u , maxAllocatableAlignment, static_cast <size_type>(allocatableDescriptors), std::forward<Args>(args)...
52
+ static_cast <size_type>(0 ), 0u , maxAllocatableAlignment, static_cast <size_type>(allocatableDescriptors), std::forward<Args>(args)...
53
53
);
54
54
m_reservedAllocator = ReservedAllocator (std::move (_reservedAllocator));
55
55
m_reservedSize = allocatableDescriptors;
@@ -77,14 +77,13 @@ class SubAllocatedDescriptorSet : public core::IReferenceCounted
77
77
78
78
// ! Warning `outAddresses` needs to be primed with `invalid_value` values, otherwise no allocation happens for elements not equal to `invalid_value`
79
79
template <typename ... Args>
80
- inline void multi_allocate (uint32_t count, value_type* outAddresses, const size_type* byteSizes, const size_type* alignments , const Args&... args)
80
+ inline void multi_allocate (uint32_t count, value_type* outAddresses, const size_type* sizes , const Args&... args)
81
81
{
82
- core::address_allocator_traits<AddressAllocator>::multi_alloc_addr (m_addressAllocator,count,outAddresses,byteSizes,alignments ,args...);
82
+ core::address_allocator_traits<AddressAllocator>::multi_alloc_addr (m_addressAllocator,count,outAddresses,sizes, 1 ,args...);
83
83
}
84
- template <typename ... Args>
85
- inline void multi_deallocate (Args&&... args)
84
+ inline void multi_deallocate (uint32_t count, const size_type* addr, const size_type* sizes)
86
85
{
87
- core::address_allocator_traits<AddressAllocator>::multi_free_addr (m_addressAllocator,std::forward<Args>(args)... );
86
+ core::address_allocator_traits<AddressAllocator>::multi_free_addr (m_addressAllocator,count,addr,sizes );
88
87
}
89
88
90
89
// to conform to IBufferAllocator concept
0 commit comments