Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TUnaryTextureOperator< InputType, OutputType, OperatorType > Class Template Reference

#include <unary_texture_operators.h>

Inheritance diagram for ph::TUnaryTextureOperator< InputType, OutputType, OperatorType >:
ph::TTexture< OutputType >

Public Types

using InputTexRes = std::shared_ptr<TTexture<InputType>>
 
- Public Types inherited from ph::TTexture< OutputType >
using Output = OutputType
 

Public Member Functions

 TUnaryTextureOperator (InputTexRes inputTexture)
 
 TUnaryTextureOperator (InputTexRes inputTexture, OperatorType op)
 
void sample (const SampleLocation &sampleLocation, OutputType *const out_value) const override
 
- Public Member Functions inherited from ph::TTexture< OutputType >
 TTexture ()=default
 
virtual ~TTexture ()=default
 

Member Typedef Documentation

◆ InputTexRes

template<typename InputType , typename OutputType , texfunc::CUnaryOperator< InputType, OutputType > OperatorType>
using ph::TUnaryTextureOperator< InputType, OutputType, OperatorType >::InputTexRes = std::shared_ptr<TTexture<InputType>>

Constructor & Destructor Documentation

◆ TUnaryTextureOperator() [1/2]

template<typename InputType , typename OutputType , texfunc::CUnaryOperator< InputType, OutputType > OperatorType>
ph::TUnaryTextureOperator< InputType, OutputType, OperatorType >::TUnaryTextureOperator ( InputTexRes inputTexture)
inlineexplicit

◆ TUnaryTextureOperator() [2/2]

template<typename InputType , typename OutputType , texfunc::CUnaryOperator< InputType, OutputType > OperatorType>
ph::TUnaryTextureOperator< InputType, OutputType, OperatorType >::TUnaryTextureOperator ( InputTexRes inputTexture,
OperatorType op )
inline

Member Function Documentation

◆ sample()

template<typename InputType , typename OutputType , texfunc::CUnaryOperator< InputType, OutputType > OperatorType>
void ph::TUnaryTextureOperator< InputType, OutputType, OperatorType >::sample ( const SampleLocation & sampleLocation,
OutputType *const out_value ) const
inlineoverridevirtual

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