You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import GLSL source files as strings. Pre-processed, validated and optimized with [Khronos Group SPIRV-Tools](https://github.com/KhronosGroup/SPIRV-Tools).
13
17
14
18
Primary use-case is processing WebGL2 / GLSL ES 300 shaders.
15
19
16
-
*Plugin supports node >= 14.x*
17
-
18
20
```js
19
21
importfragfrom'./shaders/myShader.frag';
20
22
console.log(frag);
@@ -121,6 +123,9 @@ The following shader stages are supported by the Khronos tools and recognized by
121
123
-``extraValidatorParams``, ``extraOptimizerParams``, ``extraCrossParams`` : ``string[]`` (default undefined) Additional parameters for the Khronos Glslang Validator [here](doc/glslangValidator.md), the Khronos SPIR-V Optimizer [here](doc/spirv-opt.md), and the Khronos SPIR-V Cross compiler [here](doc/spirv-cross.md).
122
124
-``glslangValidatorPath``, ``glslangOptimizerPath``, ``glslangCrossPath`` : ``string`` (default undefined) Provide / override binary tool paths. Note the environment variables always take precedence if set.
123
125
126
+
## Changelog
127
+
Available in [CHANGES.md][changelog].
128
+
124
129
## License
125
130
126
131
Released under the [MIT license](LICENSE).
@@ -139,6 +144,10 @@ Released under the [MIT license](LICENSE).
0 commit comments