@@ -202,7 +202,7 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
202202 const uint32_t w = neededPageCountForSide (_w, _baseLevel);
203203 const uint32_t h = neededPageCountForSide (_h, _baseLevel);
204204
205- return core::roundUpToPoT (std::max (w, h));
205+ return core::roundUpToPoT (std::max< uint32_t > (w, h));
206206 }
207207
208208 ISampler::SParams getPageTableSamplerParams () const
@@ -285,12 +285,12 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
285285
286286 uint32_t countLevelsTakingAtLeastOnePage (const VkExtent3D& _extent, uint32_t _baseLevel = 0u )
287287 {
288- const uint32_t baseMaxDim = core::roundUpToPoT (core::max (_extent.width , _extent.height ))>>_baseLevel;
288+ const uint32_t baseMaxDim = core::roundUpToPoT (core::max< uint32_t > (_extent.width , _extent.height ))>>_baseLevel;
289289 const int32_t lastFullMip = core::findMSB (baseMaxDim-1u )+1 - static_cast <int32_t >(m_pgSzxy_log2);
290290
291291 assert (lastFullMip<static_cast <int32_t >(m_pageTable->getCreationParameters ().mipLevels ));
292292
293- return std ::max (lastFullMip+1 , 0 );
293+ return core ::max< int32_t > (lastFullMip+1 , 0 );
294294 }
295295
296296 // this is not static only because it has to call virtual member function
@@ -304,7 +304,7 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
304304 params.arrayLayers = _pgTabLayers;
305305 params.extent = {pgTabSzxy,pgTabSzxy,1u };
306306 params.format = EF_R16G16_UINT;
307- params.mipLevels = std::max (static_cast <int32_t >(_maxAllocatableTexSz_log2-_pgSzxy_log2+1u ), 1 );
307+ params.mipLevels = std::max< int32_t > (static_cast <int32_t >(_maxAllocatableTexSz_log2-_pgSzxy_log2+1u ), 1 );
308308 params.samples = IImage::ESCF_1_BIT;
309309 params.type = IImage::ET_2D;
310310 params.flags = static_cast <IImage::E_CREATE_FLAGS>(0 );
@@ -393,7 +393,7 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
393393 class IVTResidentStorage : public core ::IReferenceCounted
394394 {
395395 protected:
396- _IRR_STATIC_INLINE_CONSTEXPR uint32_t MAX_TILES_PER_DIM = std::min(SPhysPgOffset::PAGE_ADDR_X_MASK,SPhysPgOffset::PAGE_ADDR_Y_MASK) + 1u ;
396+ _IRR_STATIC_INLINE_CONSTEXPR uint32_t MAX_TILES_PER_DIM = std::min< uint32_t > (SPhysPgOffset::PAGE_ADDR_X_MASK,SPhysPgOffset::PAGE_ADDR_Y_MASK) + 1u ;
397397 _IRR_STATIC_INLINE_CONSTEXPR uint32_t MAX_LAYERS = (1u <<(SPhysPgOffset::PAGE_ADDR_BITLENGTH-SPhysPgOffset::PAGE_ADDR_LAYER_SHIFT));
398398
399399 virtual ~IVTResidentStorage ()
@@ -772,7 +772,7 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
772772 // ! @returns pointer to reserved space for allocators
773773 uint8_t * copyVirtualSpaceAllocatorsState (uint32_t _count, pg_tab_addr_alctr_t * _dstArray)
774774 {
775- _count = std::min (_count, m_pageTable->getCreationParameters ().arrayLayers );
775+ _count = std::min< uint32_t > (_count, m_pageTable->getCreationParameters ().arrayLayers );
776776 const uint32_t bufSz = m_pageTableLayerAllocators[0 ].get_total_size ();
777777 const uint32_t resSpcPerAlctr = pg_tab_addr_alctr_t::reserved_size (m_pageTableLayerAllocators[0 ].get_total_size (), m_pageTableLayerAllocators[0 ]);
778778 uint8_t * reservedSpc = reinterpret_cast <uint8_t *>( _IRR_ALIGNED_MALLOC (resSpcPerAlctr*_count, _IRR_SIMD_ALIGNMENT) );
@@ -830,7 +830,7 @@ class IVirtualTexture : public core::IReferenceCounted, public IVirtualTextureBa
830830 std::pair<uint32_t ,uint32_t > getDSlayoutBindings_internal (typename DSlayout_t::SBinding* _outBindings, core::smart_refctd_ptr<sampler_t >* _outSamplers, uint32_t _pgtBinding = 0u , uint32_t _fsamplersBinding = 1u , uint32_t _isamplersBinding = 2u , uint32_t _usamplersBinding = 3u ) const
831831 {
832832 const uint32_t bindingCount = 1u +(getFloatViews ().size ()?1u :0u )+(getIntViews ().size ()?1u :0u )+(getUintViews ().size ()?1u :0u );
833- const uint32_t samplerCount = 1u +std::max (getFloatViews ().size (), std::max (getIntViews ().size (), getUintViews ().size ()));
833+ const uint32_t samplerCount = 1u +std::max< uint32_t > (getFloatViews ().size (), std::max< uint32_t > (getIntViews ().size (), getUintViews ().size ()));
834834 if (!_outBindings || !_outSamplers)
835835 return std::make_pair (bindingCount, samplerCount);
836836
@@ -1040,4 +1040,4 @@ bool IVirtualTexture<image_view_t, sampler_t>::SMiptailPacker::computeMiptailOff
10401040
10411041}}
10421042
1043- #endif
1043+ #endif
0 commit comments