#include "v210_converter.h"
+#include <stdio.h>
#include <epoxy/gl.h>
#include <movit/util.h>
+#include <string>
using namespace std;
char buf[16];
snprintf(buf, sizeof(buf), "%u", num_local_work_groups);
- string shader_src = R"(#version 150
+ string shader_src = R"(#version 150
#extension GL_ARB_compute_shader : enable
#extension GL_ARB_shader_image_load_store : enable
layout(local_size_x = )" + string(buf) + R"() in;
check_error();
glUniform1i(shader.outbuf_pos, 1);
check_error();
- glBindImageTexture(0, tex_src, 0, GL_FALSE, 0, GL_READ_ONLY, GL_RGB10_A2);
+ glBindImageTexture(0, tex_src, 0, GL_FALSE, 0, GL_READ_ONLY, GL_RGB10_A2);
check_error();
- glBindImageTexture(1, tex_dst, 0, GL_FALSE, 0, GL_WRITE_ONLY, GL_RGB10_A2);
+ glBindImageTexture(1, tex_dst, 0, GL_FALSE, 0, GL_WRITE_ONLY, GL_RGB10_A2);
check_error();
// Actually run the shader.