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



                                          
               
                 
                      
                 
 
                      
 

                               
                                                           
 
                  
 
                                                                       
 
                                                                           
 
                                 
 
                                                                        
 
                     
// Copyright 2014 Citra Emulator Project
// 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>

#include "common/assert.h"
#include "common/logging/log.h"
#include "video_core/renderer_opengl/gl_resource_manager.h"

namespace OpenGL {

void AttachShader(GLenum stage, GLuint program, std::string_view code);

void AttachShader(GLenum stage, GLuint program, std::span<const u32> code);

void LinkProgram(GLuint program);

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

} // namespace OpenGL