FFmpeg
Functions | Variables
vulkan_glslang.c File Reference
#include <pthread.h>
#include <glslang/build_info.h>
#include <glslang/Include/glslang_c_interface.h>
#include "mem.h"
#include "avassert.h"

Go to the source code of this file.

Functions

static int glslc_shader_compile (FFVkSPIRVCompiler *ctx, void *avctx, FFVkSPIRVShader *shd, uint8_t **data, size_t *size, const char *entrypoint, void **opaque)
 
static void glslc_shader_free (FFVkSPIRVCompiler *ctx, void **opaque)
 
static void glslc_uninit (FFVkSPIRVCompiler **ctx)
 
static FFVkSPIRVCompilerff_vk_glslang_init (void)
 

Variables

static pthread_mutex_t glslc_mutex = PTHREAD_MUTEX_INITIALIZER
 
static int glslc_refcount = 0
 
static const glslang_resource_t glslc_resource_limits
 

Function Documentation

◆ glslc_shader_compile()

static int glslc_shader_compile ( FFVkSPIRVCompiler ctx,
void *  avctx,
FFVkSPIRVShader shd,
uint8_t **  data,
size_t *  size,
const char *  entrypoint,
void **  opaque 
)
static

Definition at line 138 of file vulkan_glslang.c.

Referenced by ff_vk_glslang_init().

◆ glslc_shader_free()

static void glslc_shader_free ( FFVkSPIRVCompiler ctx,
void **  opaque 
)
static

Definition at line 237 of file vulkan_glslang.c.

Referenced by ff_vk_glslang_init().

◆ glslc_uninit()

static void glslc_uninit ( FFVkSPIRVCompiler **  ctx)
static

Definition at line 247 of file vulkan_glslang.c.

Referenced by ff_vk_glslang_init().

◆ ff_vk_glslang_init()

static FFVkSPIRVCompiler* ff_vk_glslang_init ( void  )
static

Definition at line 260 of file vulkan_glslang.c.

Referenced by ff_vk_compile_shader().

Variable Documentation

◆ glslc_mutex

Definition at line 27 of file vulkan_glslang.c.

Referenced by ff_vk_glslang_init(), and glslc_uninit().

◆ glslc_refcount

int glslc_refcount = 0
static

◆ glslc_resource_limits

const glslang_resource_t glslc_resource_limits
static

Definition at line 30 of file vulkan_glslang.c.

Referenced by glslc_shader_compile().