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).
- Host: GitHub
- URL: https://github.com/djdeveloperr/glslang-deno
- Owner: DjDeveloperr
- License: mit
- Created: 2021-03-09T09:56:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-09T10:00:28.000Z (over 4 years ago)
- Last Synced: 2025-01-22T02:35:25.293Z (5 months ago)
- Language: JavaScript
- Size: 690 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 450void 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