6#include <Common/assertion.h>
14template<
typename T, std::
size_t N>
26 PH_ASSERT(!m_frame.isEmpty());
31 m_frame(
std::move(frame))
33 PH_ASSERT(!m_frame.isEmpty());
41 const uint32 x,
const uint32 y,
45 "require same pixel type");
47 PH_ASSERT(out_pixel !=
nullptr);
49 m_frame.getPixel(x, y, out_pixel);
58 PH_ASSERT(!m_frame.isEmpty());
Definition SampleLocation.h:22
Definition TAbstractPixelTex2D.h:21
void setWidthPx(const uint32 widthPx)
Definition TAbstractPixelTex2D.h:79
void setHeightPx(const uint32 heightPx)
Definition TAbstractPixelTex2D.h:87
uint32 heightPx() const
Definition TFrame.ipp:440
uint32 widthPx() const
Definition TFrame.ipp:434
Definition TPixelTex2D.h:16
TPixelTex2D(TFrame< T, N > &&frame)
Definition TPixelTex2D.h:29
void getPixel(const uint32 x, const uint32 y, TTexPixel< T, N > *const out_pixel) const
Definition TPixelTex2D.h:40
TPixelTex2D(const TFrame< T, N > &frame)
Definition TPixelTex2D.h:22
TPixelTex2D()
Definition TPixelTex2D.h:18
void setPixels(const TFrame< T, N > &frame)
Definition TPixelTex2D.h:52
void sample(const SampleLocation &sampleLocation, TTexPixel< T, N > *out_value) const override=0
Definition TArithmeticArray.h:13
The root for all renderer implementations.
Definition EEngineProject.h:6