FFmpeg
Macros | Functions | Variables
glslang.cpp File Reference
#include <pthread.h>
#include "libavutil/mem.h"
#include "libavutil/avassert.h"
#include <glslang/Include/ResourceLimits.h>
#include <glslang/Public/ShaderLang.h>
#include <glslang/SPIRV/GlslangToSpv.h>
#include "glslang.h"

Go to the source code of this file.

Macros

#define GLSL_VERSION   EShTargetVulkan_1_1
 
#define SPIRV_VERSION   EShTargetSpv_1_3
 

Functions

GLSlangResultglslang_compile (const char *glsl, enum GLSlangStage stage)
 
int glslang_init (void)
 
void glslang_uninit (void)
 

Variables

static pthread_mutex_t glslang_mutex = PTHREAD_MUTEX_INITIALIZER
 
static int glslang_refcount = 0
 
static const TBuiltInResource DefaultTBuiltInResource
 

Macro Definition Documentation

#define GLSL_VERSION   EShTargetVulkan_1_1

Definition at line 38 of file glslang.cpp.

Referenced by glslang_compile().

#define SPIRV_VERSION   EShTargetSpv_1_3

Definition at line 41 of file glslang.cpp.

Referenced by glslang_compile().

Function Documentation

GLSlangResult* glslang_compile ( const char *  glsl,
enum GLSlangStage  stage 
)

Definition at line 152 of file glslang.cpp.

Referenced by ff_vk_compile_shader().

int glslang_init ( void  )

Definition at line 223 of file glslang.cpp.

Referenced by ff_vk_filter_init().

void glslang_uninit ( void  )

Definition at line 235 of file glslang.cpp.

Referenced by ff_vk_filter_uninit().

Variable Documentation

Definition at line 34 of file glslang.cpp.

Referenced by glslang_init(), and glslang_uninit().

int glslang_refcount = 0
static

Definition at line 35 of file glslang.cpp.

Referenced by glslang_compile(), glslang_init(), and glslang_uninit().

const TBuiltInResource DefaultTBuiltInResource
static

Definition at line 45 of file glslang.cpp.

Referenced by glslang_compile().