yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

janharaldUpdate compute shader derivative rules such that texture operations with implicit derivatives can be used without the extensions (and fall back to LoD 0).19808a89

main
451 B12 linesraw
1#version 460
2
3layout (push_constant, std430) uniform PCBlock { vec4 coords; vec2 size; float lod; } pc;
4layout (set=0, binding=0) uniform sampler2D inTex;
5layout (rgba8, set=0, binding=2) uniform image2D outColor;
6layout (local_size_x=3, local_size_y=3, local_size_z=1) in;
7
8void main(void) {
9    const vec2 texCoords = pc.coords.xy;
10    const vec4 pixel = texture(inTex, texCoords);
11    imageStore(outColor, ivec2(gl_LocalInvocationID.xy), pixel);
12}