webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
shader_utils.h File Reference
#include <export.h>
#include <GLES3/gl31.h>
#include <GLES3/gl3.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <string>
#include <vector>

Go to the source code of this file.

Macros

#define SHADER_SOURCE(...)   #__VA_ARGS__
 

Functions

ANGLE_EXPORT GLuint CompileShader (GLenum type, const std::string &source)
 
ANGLE_EXPORT GLuint CompileShaderFromFile (GLenum type, const std::string &sourcePath)
 
ANGLE_EXPORT GLuint CompileProgramWithTransformFeedback (const std::string &vsSource, const std::string &fsSource, const std::vector< std::string > &transformFeedbackVaryings, GLenum bufferMode)
 
ANGLE_EXPORT GLuint CompileProgram (const std::string &vsSource, const std::string &fsSource)
 
ANGLE_EXPORT GLuint CompileProgramFromFiles (const std::string &vsPath, const std::string &fsPath)
 
ANGLE_EXPORT GLuint CompileComputeProgram (const std::string &csSource, bool outputErrorMessages=true)
 

Macro Definition Documentation

◆ SHADER_SOURCE

#define SHADER_SOURCE (   ...)    #__VA_ARGS__

Function Documentation

◆ CompileComputeProgram()

ANGLE_EXPORT GLuint CompileComputeProgram ( const std::string csSource,
bool  outputErrorMessages = true 
)

◆ CompileProgram()

ANGLE_EXPORT GLuint CompileProgram ( const std::string vsSource,
const std::string fsSource 
)

◆ CompileProgramFromFiles()

ANGLE_EXPORT GLuint CompileProgramFromFiles ( const std::string vsPath,
const std::string fsPath 
)

◆ CompileProgramWithTransformFeedback()

ANGLE_EXPORT GLuint CompileProgramWithTransformFeedback ( const std::string vsSource,
const std::string fsSource,
const std::vector< std::string > &  transformFeedbackVaryings,
GLenum  bufferMode 
)

◆ CompileShader()

ANGLE_EXPORT GLuint CompileShader ( GLenum  type,
const std::string source 
)

◆ CompileShaderFromFile()

ANGLE_EXPORT GLuint CompileShaderFromFile ( GLenum  type,
const std::string sourcePath 
)