3 GL_AMD_texture_texture4
5 [vertex shader passthrough]
8 #extension GL_AMD_texture_texture4 : require
9 /* Verify that gather4 always samples from the base level of a mipmapped texture */
11 uniform sampler2D tex;
15 gl_FragColor = texture4(tex, vec2(0.5, 0.5));
21 texparameter 2D min linear_mipmap_linear
22 texparameter 2D mag nearest
24 # level 0 = red, 1 = green, 2 = blue, 3 = white
25 texparameter 2D base_level 0
27 texparameter 2D swizzle_r red
28 draw rect -1 -1 0.5 0.5
29 relative probe rgb (0.125, 0.125) (1.0, 1.0, 1.0)
30 texparameter 2D swizzle_r green
31 draw rect -0.5 -1 0.5 0.5
32 relative probe rgb (0.375, 0.125) (0.0, 0.0, 0.0)
33 texparameter 2D swizzle_r blue
34 draw rect 0 -1 0.5 0.5
35 relative probe rgb (0.625, 0.125) (0.0, 0.0, 0.0)
36 texparameter 2D swizzle_r alpha
37 draw rect 0.5 -1 0.5 0.5
38 relative probe rgb (0.875, 0.125) (1.0, 1.0, 1.0)
40 texparameter 2D base_level 1
42 texparameter 2D swizzle_r red
43 draw rect -1 -0.5 0.5 0.5
44 relative probe rgb (0.125, 0.375) (0.0, 0.0, 0.0)
45 texparameter 2D swizzle_r green
46 draw rect -0.5 -0.5 0.5 0.5
47 relative probe rgb (0.375, 0.375) (1.0, 1.0, 1.0)
48 texparameter 2D swizzle_r blue
49 draw rect 0 -0.5 0.5 0.5
50 relative probe rgb (0.625, 0.375) (0.0, 0.0, 0.0)
51 texparameter 2D swizzle_r alpha
52 draw rect 0.5 -0.5 0.5 0.5
53 relative probe rgb (0.875, 0.375) (1.0, 1.0, 1.0)
55 texparameter 2D base_level 2
56 texparameter 2D swizzle_r red
57 draw rect -1 0 0.5 0.5
58 relative probe rgb (0.125, 0.625) (0.0, 0.0, 0.0)
59 texparameter 2D swizzle_r green
60 draw rect -0.5 0 0.5 0.5
61 relative probe rgb (0.375, 0.625) (0.0, 0.0, 0.0)
62 texparameter 2D swizzle_r blue
64 relative probe rgb (0.625, 0.625) (1.0, 1.0, 1.0)
65 texparameter 2D swizzle_r alpha
66 draw rect 0.5 0 0.5 0.5
67 relative probe rgb (0.875, 0.625) (1.0, 1.0, 1.0)
69 texparameter 2D base_level 3
70 texparameter 2D swizzle_r red
71 draw rect -1 0.5 0.5 0.5
72 relative probe rgb (0.125, 0.875) (1.0, 1.0, 1.0)
73 texparameter 2D swizzle_r green
74 draw rect -0.5 0.5 0.5 0.5
75 relative probe rgb (0.375, 0.875) (1.0, 1.0, 1.0)
76 texparameter 2D swizzle_r blue
77 draw rect 0 0.5 0.5 0.5
78 relative probe rgb (0.625, 0.875) (1.0, 1.0, 1.0)
79 texparameter 2D swizzle_r alpha
80 draw rect 0.5 0.5 0.5 0.5
81 relative probe rgb (0.875, 0.875) (1.0, 1.0, 1.0)