目录

Sampler

Class Info

class Sampler

采样器类,用于对纹理的采样。

Public Constructor Summary

Constructor Name

Sampler()

默认构造函数。

Public Destructor Summary

Destructor Name

virtual ~Sampler()

默认析构函数。

Public Method Summary

Qualifier and Type

Method Name and Description

bool

Create(const SamplerCreateInfo& info)

根据SamplerCreateInfo信息创建采样器。

const SamplerCreateInfo&

GetSamplerCreateInfo() const

获取SamplerCreateInfo信息。

Public Constructors

[h2]Sampler

Constructor

Sampler()

默认构造函数。

Public Destructors

[h2]~Sampler

Destructor

virtual ~Sampler()

析构函数。

Public Methods

[h2]Create

Method

bool Create(const SamplerCreateInfo& info)

根据SamplerCreateInfo信息创建采样器。

Parameters

Name

Description

info

SamplerCreateInfo信息。

Returns

Type

Description

bool

返回创建结果。

  • true:成功。
  • false:失败。

[h2]GetSamplerCreateInfo

Method

const SamplerCreateInfo& GetSamplerCreateInfo() const

获取SamplerCreateInfo信息。

Returns

Type

Description

SamplerCreateInfo&

返回采样器的SamplerCreateInfo信息。