|
Sunshine master
Self-hosted game stream host for Moonlight.
|
OpenGL shader object that compiles GLSL source. More...
#include <src/platform/linux/graphics.h>
Public Member Functions | |
| std::string | err_str () |
| Read the shader compiler log. | |
| GLuint | handle () const |
| Return the native handle owned by the wrapper. | |
Static Public Member Functions | |
| static util::Either< shader_t, std::string > | compile (const std::string_view &source, GLenum type) |
| Compile an OpenGL shader and report compiler errors. | |
OpenGL shader object that compiles GLSL source.
|
static |
Compile an OpenGL shader and report compiler errors.
| source | Shader source code to compile. |
| type | OpenGL shader type, such as GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
| std::string gl::shader_t::err_str | ( | ) |
Read the shader compiler log.
| GLuint gl::shader_t::handle | ( | ) | const |
Return the native handle owned by the wrapper.