-
Running native code is such a bore, let's compile glslangValidator, spirv-cross, ispc and LLVM to WebAssembly.
```js
const src = await (await fetch('my.comp.glsl')).text();
const program = await …
-
These are snippets from my local project where I experience this issue.
```glsl
layout(buffer_reference, scalar) restrict readonly buffer UvBuffer {
vec2 uvs[];
};
struct PrimitiveDraw {
…
spnda updated
1 month ago
-
This [ZIP file](https://github.com/KhronosGroup/SPIRV-Tools/files/6327176/shaders.zip) contains two large, nearly identical shaders in SPIR-V form that differ only as follow:
- `shader-with-debugPrin…
-
It would be great to have a way to invoke glslangvalidator such that it can parse Vulkan specific GLSL (ie. compile to SPIR-V using the -V option). Currently, lines such as `layout(push_constant) unif…
-
I have this shader
```
@ctype vec2 HMM_Vec2
@ctype vec3 HMM_Vec3
@ctype vec4 HMM_Vec4
@ctype mat4 HMM_Mat4
@vs vs_particle
in vec2 apos;
in vec2 auv;
in vec4 amodel1;
in vec4 amodel2;
i…
-
Hi y'all! I recently started a similar project because I noticed that GLSL didn't have good language integration into VSCode. Language stuff isn't my forte, so I forked a project to get to where I am …
-
We would like to validate that our Vulkan GLSL is valid via `glslangValidator -V100 shader.frag` without getting the `frag.spv` output file.
-
script:
~~~bash
export CXXFLAGS+=" -m32"
export CFLAGS+=" -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
export ASFLAGS="--32"
msg2 "Build GLSLang"
cd "${srcdir}/glslang"
…
-
Are there even linters out there for GLSL?
-
When using (global) variables like
``` glsl
float a = 4;
vec3 b = vec3(a / 8, a / 8, 0);
```
the variable `a` gets inlined, but the information that it was a float seems to be lost, it appea…