Diligent Engine  v.2.4.g
Classes | Namespaces | Functions
FilteringTools.hpp File Reference
#include "../../Platforms/interface/PlatformDefinitions.h"
#include "BasicMath.hpp"
#include "../../Graphics/GraphicsEngine/interface/Sampler.h"

Go to the source code of this file.

Classes

struct  Diligent::LinearTexFilterSampleInfo
 Linear texture filter sample info. More...
 

Namespaces

 Diligent
 The library uses Direct3D-style math:
 

Functions

template<TEXTURE_ADDRESS_MODE AddressMode, bool IsNormalizedCoord>
LinearTexFilterSampleInfo Diligent::GetLinearTexFilterSampleInfo (Uint32 Width, float u)
 Returns linear texture filter sample info, see Diligent::LinearTexFilterSampleInfo. More...
 
template<typename SrcType , typename DstType , TEXTURE_ADDRESS_MODE AddressModeU, TEXTURE_ADDRESS_MODE AddressModeV, bool IsNormalizedCoord>
DstType Diligent::FilterTexture2DBilinear (Uint32 Width, Uint32 Height, const SrcType *pData, size_t Stride, float u, float v)
 Samples 2D texture using bilinear filter. More...
 
template<typename SrcType , typename DstType >
DstType Diligent::FilterTexture2DBilinearClamp (Uint32 Width, Uint32 Height, const SrcType *pData, size_t Stride, float u, float v)
 Specialization of FilterTexture2DBilinear function that uses CLAMP texture address mode and takes normalized texture coordinates. More...
 
template<typename SrcType , typename DstType >
DstType Diligent::FilterTexture2DBilinearClampUC (Uint32 Width, Uint32 Height, const SrcType *pData, size_t Stride, float u, float v)
 Specialization of FilterTexture2DBilinear function that uses CLAMP texture address mode and takes unnormalized texture coordinates. More...