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