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
426 B14 linesraw
1#version 320 es
2
3layout (local_size_x=3, local_size_y=3, local_size_z=1) in;
4
5layout (set=0, binding=1) uniform mediump sampler2D inTex;
6layout (rgba8, set=0, binding=2) uniform writeonly mediump image2D outColor;
7layout (push_constant, std430) uniform PCBlock { vec4 coords; vec2 size; float lod; } pc;
8
9void main()
10{
11    vec4 v = texture(inTex, pc.coords.xy);
12    imageStore(outColor, ivec2(gl_LocalInvocationID.xy), v);
13}
14