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

#include <TScalarPixelTexture2D.h>

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

Public Member Functions

 TScalarPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, pixel_texture::EPixelLayout alphaLayout)
 
 TScalarPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, std::size_t pixelElementIndex)
 
 TScalarPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, pixel_texture::EPixelLayout alphaLayout, pixel_texture::ESampleMode sampleMode, pixel_texture::EWrapMode wrapModeS, pixel_texture::EWrapMode wrapModeT)
 
 TScalarPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, std::size_t pixelElementIndex, pixel_texture::ESampleMode sampleMode, pixel_texture::EWrapMode wrapModeS, pixel_texture::EWrapMode wrapModeT)
 
sampleScalar (const SampleLocation &sampleLocation) const
 
- Public Member Functions inherited from ph::TNumericPixelTexture2D< T, 1 >
 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

◆ TScalarPixelTexture2D() [1/4]

template<typename T >
ph::TScalarPixelTexture2D< T >::TScalarPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer,
pixel_texture::EPixelLayout alphaLayout )
inline

◆ TScalarPixelTexture2D() [2/4]

template<typename T >
ph::TScalarPixelTexture2D< T >::TScalarPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer,
std::size_t pixelElementIndex )
inline

◆ TScalarPixelTexture2D() [3/4]

template<typename T >
ph::TScalarPixelTexture2D< T >::TScalarPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer,
pixel_texture::EPixelLayout alphaLayout,
pixel_texture::ESampleMode sampleMode,
pixel_texture::EWrapMode wrapModeS,
pixel_texture::EWrapMode wrapModeT )
inline

◆ TScalarPixelTexture2D() [4/4]

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

Member Function Documentation

◆ sampleScalar()

template<typename T >
T ph::TScalarPixelTexture2D< T >::sampleScalar ( const SampleLocation & sampleLocation) const
inline

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