yum-mirror/slang

Making it easier to work with shaders

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

Yong HeMore control flow simplifications. (#2673)bd6306cda

master
558 B25 linesraw
1#version 450
2#extension GL_ARB_fragment_shader_interlock : require
3layout(row_major) uniform;
4layout(row_major) buffer;
5layout(rgba32f)
6layout(binding = 0)
7uniform image2D entryPointParams_texture_0;
8
9layout(location = 0)
10in vec4 _S1;
11
12layout(location = 0)
13out vec4 _S2;
14
15void main()
16{
17
18    beginInvocationInterlockARB();
19    uvec2 _S3 = uvec2(_S1.xy);
20    vec4 _S4 = (imageLoad((entryPointParams_texture_0), ivec2((_S3))));
21    imageStore((entryPointParams_texture_0), ivec2((_S3)), _S4 + _S1);
22    endInvocationInterlockARB();
23    _S2 = _S4;
24    return;
25}