suyu/src/video_core/renderer_opengl/gl_shader_util.h

27 lines
612 B
C++
Raw Normal View History

// Copyright 2014 Citra Emulator Project
2014-12-17 06:38:14 +01:00
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include <glad/glad.h>
2018-04-07 07:09:33 +02:00
#include "common/assert.h"
#include "common/logging/log.h"
#include "video_core/renderer_opengl/gl_resource_manager.h"
namespace OpenGL {
2018-04-07 05:54:44 +02:00
OGLProgram CreateProgram(std::string_view code, GLenum stage);
OGLProgram CreateProgram(std::span<const u32> code, GLenum stage);
2018-04-07 05:54:44 +02:00
OGLAssemblyProgram CompileProgram(std::string_view code, GLenum target);
} // namespace OpenGL