1 #include "resize_effect.h"
6 ResizeEffect::ResizeEffect()
7 : width(1280), height(720)
9 register_int("width", &width);
10 register_int("height", &height);
13 string ResizeEffect::output_fragment_shader()
15 return read_file("identity.frag");
18 void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const
20 *virtual_width = *width = this->width;
21 *virtual_height = *height = this->height;