Talvos  0.1
SPIR-V interpreter and dynamic analysis framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
talvos::Sampler Class Reference

This class represents a sampler object. More...

#include <talvos/Image.h>

Public Member Functions

 Sampler (const VkSamplerCreateInfo &CreateInfo)
 Create a sampler. More...
 
void sample (const ImageView *Image, Image::Texel &Texel, float S, float T=0, float R=0, float A=0, float Lod=0) const
 Sample a texel from an image at the specified coordinates. More...
 

Private Attributes

VkSamplerCreateInfo Info
 The sampler parameters. More...
 

Detailed Description

This class represents a sampler object.

Definition at line 252 of file Image.h.

Constructor & Destructor Documentation

talvos::Sampler::Sampler ( const VkSamplerCreateInfo &  CreateInfo)
inline

Create a sampler.

Definition at line 256 of file Image.h.

Member Function Documentation

void talvos::Sampler::sample ( const ImageView Image,
Image::Texel Texel,
float  S,
float  T = 0,
float  R = 0,
float  A = 0,
float  Lod = 0 
) const

Sample a texel from an image at the specified coordinates.

Definition at line 517 of file Image.cpp.

Member Data Documentation

VkSamplerCreateInfo talvos::Sampler::Info
private

The sampler parameters.

Definition at line 264 of file Image.h.