Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::PixelBuffer2D Class Referenceabstract

#include <PixelBuffer2D.h>

Inheritance diagram for ph::PixelBuffer2D:
ph::TFrameBuffer2D< T, N >

Public Member Functions

 PixelBuffer2D (math::TVector2< uint32 > size, std::size_t numPixelElements)
 
 PixelBuffer2D (math::TVector2< uint32 > size, std::size_t numPixelElements, std::size_t numMipLevels)
 
virtual ~PixelBuffer2D ()=default
 
virtual pixel_buffer::TPixel< float64 > fetchPixel (math::TVector2< uint32 > xy, std::size_t mipLevel) const =0
 
virtual std::size_t estimateMemoryUsageBytes () const
 
math::TVector2< uint32 > getSize () const
 
std::size_t numPixelElements () const
 
bool hasMipmap () const
 
std::size_t numMipLevels () const
 

Constructor & Destructor Documentation

◆ PixelBuffer2D() [1/2]

ph::PixelBuffer2D::PixelBuffer2D ( math::TVector2< uint32 > size,
std::size_t numPixelElements )
inline

◆ PixelBuffer2D() [2/2]

ph::PixelBuffer2D::PixelBuffer2D ( math::TVector2< uint32 > size,
std::size_t numPixelElements,
std::size_t numMipLevels )
inline

◆ ~PixelBuffer2D()

virtual ph::PixelBuffer2D::~PixelBuffer2D ( )
inlinevirtualdefault

Member Function Documentation

◆ estimateMemoryUsageBytes()

std::size_t ph::PixelBuffer2D::estimateMemoryUsageBytes ( ) const
inlinevirtual

Reimplemented in ph::TFrameBuffer2D< T, N >.

◆ fetchPixel()

virtual pixel_buffer::TPixel< float64 > ph::PixelBuffer2D::fetchPixel ( math::TVector2< uint32 > xy,
std::size_t mipLevel ) const
pure virtual

Implemented in ph::TFrameBuffer2D< T, N >.

◆ getSize()

math::TVector2< uint32 > ph::PixelBuffer2D::getSize ( ) const
inline

◆ hasMipmap()

bool ph::PixelBuffer2D::hasMipmap ( ) const
inline

◆ numMipLevels()

std::size_t ph::PixelBuffer2D::numMipLevels ( ) const
inline

◆ numPixelElements()

std::size_t ph::PixelBuffer2D::numPixelElements ( ) const
inline

The documentation for this class was generated from the following file: