Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TTrilinearPixelTex2D.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace ph
6{
7template<typename T, std::size_t N>
8class TTrilinearPixelTex2D final : public TMipmap<T, N>
9{
10public:
11 using TMipmap<T, N>::TMipmap;
12 virtual ~TTrilinearPixelTex2D() override = default;
13
14 virtual inline void sample(
15 const SampleLocation& sampleLocation,
16 TTexPixel<T, N>* const out_value) const override
17 {
18 // TODO
19 }
20
21 inline void setMipLevel(const std::size_t level,
22 std::unique_ptr<TAbstractPixelTex2D<T, N>> texture)
23 {
24 setLevel(level, std::move(texture));
25 }
26};
27
28}// end namespace ph
Definition SampleLocation.h:22
Definition TAbstractPixelTex2D.h:21
Definition TMipmap.h:15
void setLevel(const std::size_t level, std::unique_ptr< TAbstractPixelTex2D< T, N > > texture)
Definition TMipmap.h:47
TMipmap()
Definition TMipmap.h:17
Definition TTrilinearPixelTex2D.h:9
virtual ~TTrilinearPixelTex2D() override=default
void setMipLevel(const std::size_t level, std::unique_ptr< TAbstractPixelTex2D< T, N > > texture)
Definition TTrilinearPixelTex2D.h:21
virtual void sample(const SampleLocation &sampleLocation, TTexPixel< T, N > *const out_value) const override
Definition TTrilinearPixelTex2D.h:14
Definition TArithmeticArray.h:13
The root for all renderer implementations.
Definition EEngineProject.h:6