convert function
Converts one GLSL stage into a `GlslShader` module.
import { convert } from '@dioramajs/glsl/convert'function convert(source: string, options?: ConvertOptions): ConvertResultParameters
| Name | Type | Description |
|---|---|---|
source | string | |
options? | ConvertOptions | Default |
- Throws With every error diagnostic of the stage;
diagnosticsholds the codes.
Defined in packages/glsl/src/convert/index.ts.