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/Include/revision.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

◆ GLSL_VERSION

#define GLSL_VERSION   EShTargetVulkan_1_1

Definition at line 39 of file glslang.cpp.

◆ SPIRV_VERSION

#define SPIRV_VERSION   EShTargetSpv_1_3

Definition at line 42 of file glslang.cpp.

Function Documentation

◆ glslang_compile()

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

Definition at line 153 of file glslang.cpp.

Referenced by ff_vk_compile_shader().

◆ glslang_init()

int glslang_init ( void  )

Definition at line 224 of file glslang.cpp.

Referenced by ff_vk_filter_init().

◆ glslang_uninit()

void glslang_uninit ( void  )

Definition at line 236 of file glslang.cpp.

Referenced by ff_vk_filter_uninit().

Variable Documentation

◆ glslang_mutex

Definition at line 35 of file glslang.cpp.

Referenced by glslang_init(), and glslang_uninit().

◆ glslang_refcount

int glslang_refcount = 0
static

Definition at line 36 of file glslang.cpp.

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

◆ DefaultTBuiltInResource

const TBuiltInResource DefaultTBuiltInResource
static

Definition at line 46 of file glslang.cpp.

Referenced by glslang_compile().