20 #ifndef ANTKEEPER_RENDER_RESAMPLE_PASS_HPP
21 #define ANTKEEPER_RENDER_RESAMPLE_PASS_HPP
68 void rebuild_command_buffer();
70 std::unique_ptr<gl::vertex_array> m_vertex_array;
71 std::unique_ptr<gl::shader_program> m_shader_program;
72 std::shared_ptr<gl::texture_2d> m_source_texture;
73 std::vector<std::function<void()>> m_command_buffer;
Graphics pipeline interface.
resample_pass(gl::pipeline *pipeline, const gl::framebuffer *framebuffer, resource_manager *resource_manager)
Constructs a resample pass.
void set_source_texture(std::shared_ptr< gl::texture_2d > texture)
Sets the resample source texture.
void render(render::context &ctx) override
Resamples a texture.
Manages the loading, caching, and saving of resources.