pip install glnext-compiler
This library is a standalone GLSL compiler for vulkan projects.
The binaries do not require the vulkan-sdk to be installed.
This library uses shaderc.
from glnext_compiler import glsl
spv = glsl('''
#version 450
#pragma shader_stage(vertex)
layout (location = 0) in vec2 in_vert;
void main() {
gl_Position = vec4(in_vert, 0.0, 1.0);
}
''')