blob: bb4514badad1dab5bb85417602d27a0df00e99be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// texture-load.slang.glsl
//TEST_IGNORE_FILE:
#version 450
layout(row_major) uniform;
layout(row_major) buffer;
#extension GL_EXT_samplerless_texture_functions : require
struct SLANG_ParameterGroup_C_0
{
ivec2 pos_0;
};
layout(binding = 2)
layout(std140)
uniform _S1
{
SLANG_ParameterGroup_C_0 _data;
} C_0;
layout(binding = 0)
uniform texture2D inputTexture_0;
layout(rg32f)
layout(binding = 1)
uniform image2D outputTexture_0;
layout(local_size_x = 16, local_size_y = 16, local_size_z = 1) in;
void main()
{
ivec3 _S2 = ivec3(C_0._data.pos_0, 0);
vec2 tmp_0 = texelFetch(
inputTexture_0,
_S2.xy,
_S2.z).xy;
imageStore(
outputTexture_0,
ivec2(uvec2(C_0._data.pos_0)),
vec4(tmp_0, float(0), float(0)));
return;
}
|