VTK-m  2.2
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device > Class Template Reference

#include <Texture2D.h>

Public Types

using TextureExecPortal = typename TextureDataHandle::ReadPortalType
 

Public Member Functions

 Texture2DSamplerExecutionObject ()
 
 Texture2DSamplerExecutionObject (vtkm::Id width, vtkm::Id height, const TextureDataHandle &data, TextureFilterMode filterMode, TextureWrapMode wrapMode, vtkm::cont::Token &token)
 
ColorType GetColor (vtkm::Float32 u, vtkm::Float32 v) const
 

Private Member Functions

ColorType GetNearestNeighbourFilteredColor (vtkm::Float32 u, vtkm::Float32 v) const
 
ColorType GetLinearFilteredColor (vtkm::Float32 u, vtkm::Float32 v) const
 
ColorType GetColorAtCoords (vtkm::Id x, vtkm::Id y) const
 
void GetNextCoords (vtkm::Id x, vtkm::Id y, vtkm::Id &xn, vtkm::Id &yn) const
 

Private Attributes

vtkm::Id Width
 
vtkm::Id Height
 
TextureExecPortal Data
 
TextureFilterMode FilterMode
 
TextureWrapMode WrapMode
 

Member Typedef Documentation

◆ TextureExecPortal

template<vtkm::IdComponent NumComponents>
template<typename Device >
using vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::TextureExecPortal = typename TextureDataHandle::ReadPortalType

Constructor & Destructor Documentation

◆ Texture2DSamplerExecutionObject() [1/2]

template<vtkm::IdComponent NumComponents>
template<typename Device >
vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::Texture2DSamplerExecutionObject ( )
inline

◆ Texture2DSamplerExecutionObject() [2/2]

template<vtkm::IdComponent NumComponents>
template<typename Device >
vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::Texture2DSamplerExecutionObject ( vtkm::Id  width,
vtkm::Id  height,
const TextureDataHandle data,
TextureFilterMode  filterMode,
TextureWrapMode  wrapMode,
vtkm::cont::Token token 
)
inline

Member Function Documentation

◆ GetColor()

template<vtkm::IdComponent NumComponents>
template<typename Device >
ColorType vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::GetColor ( vtkm::Float32  u,
vtkm::Float32  v 
) const
inline

◆ GetColorAtCoords()

template<vtkm::IdComponent NumComponents>
template<typename Device >
ColorType vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::GetColorAtCoords ( vtkm::Id  x,
vtkm::Id  y 
) const
inlineprivate

◆ GetLinearFilteredColor()

template<vtkm::IdComponent NumComponents>
template<typename Device >
ColorType vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::GetLinearFilteredColor ( vtkm::Float32  u,
vtkm::Float32  v 
) const
inlineprivate

◆ GetNearestNeighbourFilteredColor()

template<vtkm::IdComponent NumComponents>
template<typename Device >
ColorType vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::GetNearestNeighbourFilteredColor ( vtkm::Float32  u,
vtkm::Float32  v 
) const
inlineprivate

◆ GetNextCoords()

template<vtkm::IdComponent NumComponents>
template<typename Device >
void vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::GetNextCoords ( vtkm::Id  x,
vtkm::Id  y,
vtkm::Id xn,
vtkm::Id yn 
) const
inlineprivate

Member Data Documentation

◆ Data

template<vtkm::IdComponent NumComponents>
template<typename Device >
TextureExecPortal vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::Data
private

◆ FilterMode

template<vtkm::IdComponent NumComponents>
template<typename Device >
TextureFilterMode vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::FilterMode
private

◆ Height

template<vtkm::IdComponent NumComponents>
template<typename Device >
vtkm::Id vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::Height
private

◆ Width

template<vtkm::IdComponent NumComponents>
template<typename Device >
vtkm::Id vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::Width
private

◆ WrapMode

template<vtkm::IdComponent NumComponents>
template<typename Device >
TextureWrapMode vtkm::rendering::Texture2D< NumComponents >::Texture2DSamplerExecutionObject< Device >::WrapMode
private

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