Manage all samplers for GPU textures. Samplers are shared between all shader programs, and directly specified in the shaders based on use. All samplers are stored in a unique, shared descriptor set appended to all other sets (set #3).
More...
#include <SamplerLibrary.hpp>
|
std::vector< VkSampler > | _samplers |
| Texture samplers.
|
|
VkDescriptorSetLayout | _layout |
| Samplers descriptor set layout.
|
|
DescriptorSet | _set |
| Samplers descriptor set allocation.
|
|
Manage all samplers for GPU textures. Samplers are shared between all shader programs, and directly specified in the shaders based on use. All samplers are stored in a unique, shared descriptor set appended to all other sets (set #3).
- See also
- GPUShaders::Common::Samplers
◆ clean()
void SamplerLibrary::clean |
( |
| ) |
|
◆ getDefaultSampler()
VkSampler SamplerLibrary::getDefaultSampler |
( |
| ) |
const |
|
inline |
- Returns
- a basic sampler for use when displaying textures in ImGui
- Note
- It is a linearly interpolated sampler with clamped UVs (sClampLinear)
◆ getLayout()
VkDescriptorSetLayout SamplerLibrary::getLayout |
( |
| ) |
const |
|
inline |
- Returns
- the sampler descriptor set layout
◆ getSetHandle()
VkDescriptorSet SamplerLibrary::getSetHandle |
( |
| ) |
const |
|
inline |
- Returns
- the sampler descriptor set
◆ init()
void SamplerLibrary::init |
( |
| ) |
|
◆ setupSampler()
Create a sampler based on the sampling parameters.
- Parameters
-
settings | the sampler configuration |
- Returns
- the created sampler
The documentation for this class was generated from the following files: