File: spv.precisionTexture.frag

package info (click to toggle)
glslang 16.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,720 kB
  • sloc: cpp: 92,305; yacc: 4,320; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (24 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#version 310 es
precision mediump float;
precision mediump int;
layout(binding = 0) uniform mediump sampler2D texM;
layout(binding = 1) uniform highp sampler2D texH;
layout(binding = 0, rgba32f) uniform readonly mediump image2D imageM;
layout(binding = 1, rgba32f) uniform readonly highp image2D imageH;

layout(location = 0) in highp vec4 vertex;
layout(location = 1) flat in highp ivec2 coord;
layout(location = 0) out vec4 fragColor;

void main()
{
    vec4 v;
    v = texture(texM, vertex.xy);
    v = texture(texH, vertex.xy);
    v = textureLod(texM, vertex.xy, vertex.z);
    v = textureLod(texH, vertex.xy, vertex.z);
    v = textureProj(texM, vertex.xyz);
    v = textureProj(texH, vertex.xyz);
    v = imageLoad(imageM, coord);
    v = imageLoad(imageH, coord);
}