Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
Sampler类 参考
类 Sampler 继承关系图:
GLSampler VKSampler

struct  Descriptor
 

Public 类型

enum class  Filter { Nearest , Bilinear , Trilinear }
 
enum class  Warp { Repeat , ClampToEdge , MirrorRepeat }
 

Public 成员函数

 Sampler (const Descriptor &desc)
 
Filter get_min_filter () const noexcept
 
Filter get_mag_filter () const noexcept
 
Warp get_s_warp_mode () const noexcept
 
Warp get_t_warp_mode () const noexcept
 
Warp get_r_warp_mode () const noexcept
 

Protected 属性

Filter min_filter_
 
Filter mag_filter_
 
Warp s_warp_
 
Warp t_warp_
 
Warp r_warp_
 

成员枚举类型说明

◆ Filter

enum class Sampler::Filter
strong
枚举值
Nearest 

最近点采样, 临近过滤.

Bilinear 

双线性过滤.

Trilinear 

三线性过滤.

◆ Warp

enum class Sampler::Warp
strong
枚举值
Repeat 

重复.

ClampToEdge 

超出边界后重复边缘, 产生边缘被拉伸的效果.

MirrorRepeat 

镜像重复, 正像/镜像交替.


该类的文档由以下文件生成: