#include "texture_pipeline.h"

#include "core/renderer/renderer.h"

bool texture_pipeline::init() {
    param_buffer = aorii::get_renderer_raw()->create_buffer(buffer_type::constant, sizeof(param), 1);
    return pipeline::init();
}
void texture_pipeline::destroy() {
    pipeline::destroy();
    aorii::get_renderer_raw()->destroy_buffer(param_buffer);
}

void texture_pipeline::set_param(const param& in_param) {
    param_buffer->set_data(in_param);
}
