Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TNumericPixelTexture2D< T, N > Class Template Reference

#include <TNumericPixelTexture2D.h>

Inheritance diagram for ph::TNumericPixelTexture2D< T, N >:
ph::TPixelTexture2D< math::TArithmeticArray< T, N > > ph::TTexture< math::TArithmeticArray< T, N > >

Public Member Functions

 TNumericPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer)
 
 TNumericPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, pixel_texture::ESampleMode sampleMode, pixel_texture::EWrapMode wrapModeS, pixel_texture::EWrapMode wrapModeT)
 
 TNumericPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, pixel_texture::ESampleMode sampleMode, pixel_texture::EWrapMode wrapModeS, pixel_texture::EWrapMode wrapModeT, std::size_t pixelIndexOffset)
 
void sample (const SampleLocation &sampleLocation, math::TArithmeticArray< T, N > *out_value) const override
 
- Public Member Functions inherited from ph::TPixelTexture2D< math::TArithmeticArray< T, N > >
 TPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer)
 
 TPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, pixel_texture::ESampleMode sampleMode, pixel_texture::EWrapMode wrapModeS, pixel_texture::EWrapMode wrapModeT)
 
pixel_buffer::TPixel< float64 > samplePixelBuffer (const math::Vector2D &sampleUV) const
 
math::TVector2< uint32 > getSizePx () const
 
math::Vector2D getTexelSize () const
 
pixel_texture::ESampleMode getSampleMode () const
 
pixel_texture::EWrapMode getWrapModeS () const
 
pixel_texture::EWrapMode getWrapModeT () const
 
const PixelBuffer2DgetPixelBuffer () const
 
pixel_buffer::TPixel< float64 > samplePixelBufferNearest (const math::Vector2D &sampleUV) const
 
pixel_buffer::TPixel< float64 > samplePixelBufferBilinear (const math::Vector2D &sampleUV) const
 
- Public Member Functions inherited from ph::TTexture< math::TArithmeticArray< T, N > >
 TTexture ()=default
 
virtual ~TTexture ()=default
 

Additional Inherited Members

- Public Types inherited from ph::TTexture< math::TArithmeticArray< T, N > >
using Output
 
- Protected Member Functions inherited from ph::TPixelTexture2D< math::TArithmeticArray< T, N > >
math::Vector2D sampleUVToST (const math::Vector2D &sampleUV) const
 

Constructor & Destructor Documentation

◆ TNumericPixelTexture2D() [1/3]

template<typename T , std::size_t N>
ph::TNumericPixelTexture2D< T, N >::TNumericPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer)
inlineexplicit

◆ TNumericPixelTexture2D() [2/3]

template<typename T , std::size_t N>
ph::TNumericPixelTexture2D< T, N >::TNumericPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer,
pixel_texture::ESampleMode sampleMode,
pixel_texture::EWrapMode wrapModeS,
pixel_texture::EWrapMode wrapModeT )
inline

◆ TNumericPixelTexture2D() [3/3]

template<typename T , std::size_t N>
ph::TNumericPixelTexture2D< T, N >::TNumericPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer,
pixel_texture::ESampleMode sampleMode,
pixel_texture::EWrapMode wrapModeS,
pixel_texture::EWrapMode wrapModeT,
std::size_t pixelIndexOffset )
inline

Member Function Documentation

◆ sample()

template<typename T , std::size_t N>
void ph::TNumericPixelTexture2D< T, N >::sample ( const SampleLocation & sampleLocation,
math::TArithmeticArray< T, N > * out_value ) const
inlineoverridevirtual

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