sandbox
Loading...
Searching...
No Matches
separate_sampler.hpp
1#ifndef LIBSBX_GRAPHICS_IMAGES_SEPARATE_SAMPLER_HPP_
2#define LIBSBX_GRAPHICS_IMAGES_SEPARATE_SAMPLER_HPP_
3
4#include <libsbx/graphics/descriptor/descriptor.hpp>
5
6namespace sbx::graphics {
7
9
10public:
11
12 separate_sampler(VkFilter filter = VK_FILTER_LINEAR, VkSamplerAddressMode address_mode = VK_SAMPLER_ADDRESS_MODE_REPEAT);
13
15
16 static auto create_descriptor_set_layout_binding(std::uint32_t binding, VkDescriptorType descriptor_type, VkShaderStageFlags shader_stage_flags) noexcept -> VkDescriptorSetLayoutBinding;
17
18 auto write_descriptor_set(std::uint32_t binding, VkDescriptorType descriptor_type) const noexcept -> graphics::write_descriptor_set override;
19
20 auto handle() const noexcept -> VkSampler;
21
22 operator VkSampler() const noexcept;
23
24private:
25
26 VkSampler _handle;
27
28}; // class separate_sampler
29
30} // namespace sbx::graphics
31
32#endif // LIBSBX_GRAPHICS_IMAGES_SEPARATE_SAMPLER_HPP_
Definition: descriptor.hpp:37
Definition: separate_sampler.hpp:8
Definition: descriptor.hpp:12