2#ifndef LIBSBX_POST_FILTERS_DEFAULT_FILTER_HPP_
3#define LIBSBX_POST_FILTERS_DEFAULT_FILTER_HPP_
7#include <libsbx/graphics/graphics_module.hpp>
9#include <libsbx/post/filter.hpp>
13template<std::
size_t Id>
20 default_filter(
const std::vector<graphics::attachment_description>& attachments,
const std::filesystem::path& path,
const std::string& attachment_name)
22 _attachment_name{attachment_name} { }
27 EASY_BLOCK(
"default_filter::render");
29 auto& pipeline = base_type::pipeline();
30 auto& descriptor_handler = base_type::descriptor_handler();
32 auto& graphics_module = core::engine::get_module<graphics::graphics_module>();
34 pipeline.bind(command_buffer);
36 descriptor_handler.push(
"image", graphics_module.attachment(_attachment_name));
38 if (!descriptor_handler.update(pipeline)) {
42 descriptor_handler.bind_descriptors(command_buffer);
44 command_buffer.draw(3, 1, 0, 0);
49 std::string _attachment_name;
Definition: command_buffer.hpp:15
Definition: default_filter.hpp:14
Definition: filter.hpp:19