diff options
Diffstat (limited to 'testdata/graphics-features/pickInt.out')
-rw-r--r-- | testdata/graphics-features/pickInt.out | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/testdata/graphics-features/pickInt.out b/testdata/graphics-features/pickInt.out new file mode 100644 index 00000000..8812744e --- /dev/null +++ b/testdata/graphics-features/pickInt.out | |||
@@ -0,0 +1,111 @@ | |||
1 | Pipeline | ||
2 | { info = "" | ||
3 | , backend = OpenGL33 | ||
4 | , textures = | ||
5 | [ TextureDescriptor | ||
6 | { textureType = Texture2D (IntT RGBA) 1 | ||
7 | , textureSize = VV2U (V2 800 600) | ||
8 | , textureSemantic = Color | ||
9 | , textureSampler = | ||
10 | SamplerDescriptor | ||
11 | { samplerWrapS = Repeat | ||
12 | , samplerWrapT = Just Repeat | ||
13 | , samplerWrapR = Nothing | ||
14 | , samplerMinFilter = Nearest | ||
15 | , samplerMagFilter = Nearest | ||
16 | , samplerBorderColor = VV4F (V4 0.0 0.0 0.0 1.0) | ||
17 | , samplerMinLod = Nothing | ||
18 | , samplerMaxLod = Nothing | ||
19 | , samplerLodBias = 0.0 | ||
20 | , samplerCompareFunc = Nothing | ||
21 | } | ||
22 | , textureBaseLevel = 0 | ||
23 | , textureMaxLevel = 0 | ||
24 | } | ||
25 | ] | ||
26 | , samplers = [] | ||
27 | , targets = | ||
28 | [ RenderTarget | ||
29 | { renderTargets = | ||
30 | [ TargetItem | ||
31 | { targetSemantic = Color | ||
32 | , targetRef = Just (TextureImage 0 0 Nothing) | ||
33 | } | ||
34 | ] | ||
35 | } | ||
36 | ] | ||
37 | , programs = | ||
38 | [ Program | ||
39 | { programUniforms = fromList [ ( "viewProj" , M44F ) ] | ||
40 | , programStreams = | ||
41 | fromList | ||
42 | [ ( "vi1" , Parameter { name = "position" , ty = V3F } ) | ||
43 | , ( "vi2" , Parameter { name = "color" , ty = V4F } ) | ||
44 | , ( "vi3" , Parameter { name = "id" , ty = Int } ) | ||
45 | ] | ||
46 | , programInTextures = fromList [] | ||
47 | , programOutput = [ Parameter { name = "f0" , ty = V4I } ] | ||
48 | , vertexShader = | ||
49 | """ | ||
50 | #version 330 core | ||
51 | vec4 texture2D(sampler2D s,vec2 uv) { | ||
52 | return texture(s,uv); | ||
53 | } | ||
54 | uniform mat4 viewProj; | ||
55 | in vec3 vi1; | ||
56 | in vec4 vi2; | ||
57 | in int vi3; | ||
58 | flat out vec2 vo1; | ||
59 | flat out ivec4 vo2; | ||
60 | void main() { | ||
61 | gl_Position = (viewProj) * (vec4 ((vi1).x,(vi1).y,0.0,1.0)); | ||
62 | vo1 = vec2 (0.0,0.0); | ||
63 | vo2 = ivec4 (0,0,0,vi3); | ||
64 | } | ||
65 | """ | ||
66 | , geometryShader = Nothing | ||
67 | , fragmentShader = | ||
68 | """ | ||
69 | #version 330 core | ||
70 | vec4 texture2D(sampler2D s,vec2 uv) { | ||
71 | return texture(s,uv); | ||
72 | } | ||
73 | flat in vec2 vo1; | ||
74 | flat in ivec4 vo2; | ||
75 | out ivec4 f0; | ||
76 | void main() { | ||
77 | f0 = vo2; | ||
78 | } | ||
79 | """ | ||
80 | } | ||
81 | ] | ||
82 | , slots = | ||
83 | [ Slot | ||
84 | { slotName = "objects" | ||
85 | , slotStreams = | ||
86 | fromList | ||
87 | [ ( "color" , V4F ) , ( "id" , Int ) , ( "position" , V3F ) ] | ||
88 | , slotUniforms = fromList [ ( "viewProj" , M44F ) ] | ||
89 | , slotPrimitive = Triangles | ||
90 | , slotPrograms = [ 0 ] | ||
91 | } | ||
92 | ] | ||
93 | , streams = [] | ||
94 | , commands = | ||
95 | [ SetRenderTarget 0 | ||
96 | , ClearRenderTarget | ||
97 | [ ClearImage | ||
98 | { imageSemantic = Color , clearValue = VV4I (V4 0 0 0 0) } | ||
99 | ] | ||
100 | , SetProgram 0 | ||
101 | , SetRasterContext | ||
102 | (TriangleCtx (CullFront CCW) PolygonFill NoOffset LastVertex) | ||
103 | , SetAccumulationContext | ||
104 | AccumulationContext | ||
105 | { accViewportName = Nothing | ||
106 | , accOperations = | ||
107 | [ ColorOp NoBlending (VV4B (V4 True True True True)) ] | ||
108 | } | ||
109 | , RenderSlot 0 | ||
110 | ] | ||
111 | } \ No newline at end of file | ||