summaryrefslogblamecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_util.h
blob: 43ebcdebabe8e16b8b1bcca06aca703e0649bb8f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                      


            
               
                      
 
                      
 
                                                           
 
                  
 
                                                              
 
                                                                  
 
                                                                        
 
                     
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <span>
#include <string_view>

#include <glad/glad.h>

#include "video_core/renderer_opengl/gl_resource_manager.h"

namespace OpenGL {

OGLProgram CreateProgram(std::string_view code, GLenum stage);

OGLProgram CreateProgram(std::span<const u32> code, GLenum stage);

OGLAssemblyProgram CompileProgram(std::string_view code, GLenum target);

} // namespace OpenGL