@@ -49,7 +49,7 @@ class SubAllocatedDescriptorSet : public core::IReferenceCounted
4949
5050 m_addressAllocator = AddrAllocator (
5151 _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)...
5353 );
5454 m_reservedAllocator = ReservedAllocator (std::move (_reservedAllocator));
5555 m_reservedSize = allocatableDescriptors;
@@ -77,14 +77,13 @@ class SubAllocatedDescriptorSet : public core::IReferenceCounted
7777
7878 // ! Warning `outAddresses` needs to be primed with `invalid_value` values, otherwise no allocation happens for elements not equal to `invalid_value`
7979 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)
8181 {
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...);
8383 }
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)
8685 {
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 );
8887 }
8988
9089 // to conform to IBufferAllocator concept
0 commit comments