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

https://github.com/djdeveloperr/glslang-deno

Compile GLSL to SPIR-V binary. Port of @webgpu/glslang (NPM).
https://github.com/djdeveloperr/glslang-deno

Last synced: 4 months ago
JSON representation

Compile GLSL to SPIR-V binary. Port of @webgpu/glslang (NPM).

Awesome Lists containing this project

README

        

# Glslang Deno

Compile GLSL to SPIR-V binary.

This is a port of [@webgpu/glslang for Node](https://www.npmjs.com/package/@webgpu/glslang).
All credit goes to them.

## Usage

```ts
import glslang from "https://deno.land/x/glslang/mod.ts";

const glslCode = `
#version 450

void main() {
// ...
}
`;

const spirvBinary = glslang.compileGLSL(glslCode, "compute", false);
```

## Contributing

You're always welcome to contribute!

## License

Check [LICENSE](LICENSE) for more info.

Copyright 2021 @ DjDeveloperr