5#include <Common/assertion.h>
13template<
typename T, std::
size_t N>
36 PH_ASSERT(level < m_levels.size());
38 return m_levels[level].get();
43 return m_levels.size();
50 PH_ASSERT(level < m_levels.size());
52 m_levels[level] = std::move(texture);
56 std::vector<std::unique_ptr<TAbstractPixelTex2D<T, N>>> m_levels;
Definition SampleLocation.h:22
Definition TAbstractPixelTex2D.h:21
void setLevel(const std::size_t level, std::unique_ptr< TAbstractPixelTex2D< T, N > > texture)
Definition TMipmap.h:47
std::size_t numLevels() const
Definition TMipmap.h:41
const TAbstractPixelTex2D< T, N > * getLevel(const std::size_t level) const
Definition TMipmap.h:34
TMipmap(const std::size_t numLevels)
Definition TMipmap.h:21
virtual void sample(const SampleLocation &sampleLocation, TTexPixel< T, N > *const out_value) const =0
TMipmap()
Definition TMipmap.h:17
virtual ~TMipmap() override=default
Definition TArithmeticArray.h:13
The root for all renderer implementations.
Definition EEngineProject.h:6