2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2015-10-09 07:25:09 +00:00
|
|
|
#include <string>
|
|
|
|
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/GLExtensions.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2018-10-03 13:03:26 +00:00
|
|
|
class GLContext;
|
|
|
|
|
2019-02-15 01:59:50 +00:00
|
|
|
// Texture which we use to not disturb the other bindings.
|
|
|
|
constexpr GLenum GL_MUTABLE_TEXTURE_INDEX = GL_TEXTURE10;
|
|
|
|
|
2018-03-10 04:52:48 +00:00
|
|
|
namespace GLUtil
|
|
|
|
{
|
|
|
|
GLuint CompileProgram(const std::string& vertexShader, const std::string& fragmentShader);
|
2018-10-03 13:03:26 +00:00
|
|
|
void EnablePrimitiveRestart(const GLContext* context);
|
2018-10-03 13:02:45 +00:00
|
|
|
} // namespace GLUtil
|