FFmpeg
glslang.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVFILTER_GLSLANG_H
20 #define AVFILTER_GLSLANG_H
21 
22 #include "vulkan.h"
23 
24 /**
25  * Un/initialize glslang's global state. Thread-safe and reference counted.
26  */
27 int ff_vk_glslang_init(void);
28 void ff_vk_glslang_uninit(void);
29 
30 /**
31  * Compile GLSL into SPIR-V using glslang.
32  */
34  uint8_t **data, size_t *size, void **opaque);
35 
36 /**
37  * Frees the shader-specific context.
38  */
39 void ff_vk_glslang_shader_free(void *opaque);
40 
41 #endif /* AVFILTER_GLSLANG_H */
ff_vk_glslang_shader_compile
int ff_vk_glslang_shader_compile(AVFilterContext *avctx, FFSPIRVShader *shd, uint8_t **data, size_t *size, void **opaque)
Compile GLSL into SPIR-V using glslang.
Definition: glslang.c:140
data
const char data[16]
Definition: mxf.c:143
ff_vk_glslang_uninit
void ff_vk_glslang_uninit(void)
Definition: glslang.c:250
ff_vk_glslang_init
int ff_vk_glslang_init(void)
Un/initialize glslang's global state.
Definition: glslang.c:238
vulkan.h
size
int size
Definition: twinvq_data.h:10344
ff_vk_glslang_shader_free
void ff_vk_glslang_shader_free(void *opaque)
Frees the shader-specific context.
Definition: glslang.c:233
AVFilterContext
An instance of a filter.
Definition: avfilter.h:386
FFSPIRVShader
Definition: vulkan.h:56