yum-mirror/glslang

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

Wint3rNightAllow unsized descriptor heap arrays on ES2345014d

main
560 B25 linesraw
1#version 310 es
2
3#extension GL_EXT_descriptor_heap : require
4#extension GL_EXT_structured_descriptor_heap : require
5
6precision highp float;
7
8resourceheap ResourceHeap {
9    uint count;
10    highp texture2D textures[];
11} resources;
12
13samplerheap SamplerHeap {
14    highp samplerShadow shadowSampler;
15    highp sampler samplers[];
16} samplers;
17
18layout(location = 0) in vec2 uvs;
19layout(location = 0) out vec4 fragColor;
20
21void main()
22{
23    fragColor = texture(sampler2D(resources.textures[2], samplers.samplers[1]), uvs);
24    fragColor.x += float(resources.count);
25}