An open API service indexing awesome lists of open source software.

https://github.com/dlanggamedev/bindbc-glslang

Dynamic binding to GLSL reference compiler
https://github.com/dlanggamedev/bindbc-glslang

glsl glslang shader-programming

Last synced: 4 months ago
JSON representation

Dynamic binding to GLSL reference compiler

Awesome Lists containing this project

README

          

# BindBC-GLSLang
BindBC binding to [GLSL reference compiler from Khronos Group](https://github.com/KhronosGroup/glslang). This package allows to embed a GLSL-to-SPIR-V compilation toolchain into your application, thereby avoiding the tedious separate shader building step.

[![DUB Package](https://img.shields.io/dub/v/bindbc-glslang.svg)](https://code.dlang.org/packages/bindbc-glslang)
[![DUB Downloads](https://img.shields.io/dub/dm/bindbc-glslang.svg)](https://code.dlang.org/packages/bindbc-glslang)

## Usage
```
dub add bindbc-glslang
```

BindBC-GLSLang relies on a shared library: `glslang.dll` on Windows and `libglslang.so` on Linux. To compile GLSLang with shared libraries, use `BUILD_SHARED_LIBS` CMake option, for example:

```
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
```