summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.30/compiler/texture/texelFetchOffset2.frag
blob: 362b833f1ec41a5267538822919f5bbc59c99736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// [config]
// expect_result: pass
// glsl_version: 1.30
// [end_config]

#version 130

uniform sampler2D a;
uniform ivec2 pos;
uniform int lod;

float f() {
      vec4 x;
      const ivec2 offset = ivec2(5, 3);
      x = texelFetchOffset(a, pos, lod, offset);
      return x.x;
}