diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-02-14 11:28:53 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-02-14 11:32:08 +0100 |
commit | 4b8d586412b024f24121e00c8ce0f2bc3eb53234 (patch) | |
tree | dcc006db9670a71c32bdf2bf13332227d1765e82 /testdata/reduce01.out | |
parent | cc11c0743bbab50f0f9d7bcc33fd41533a280870 (diff) |
pretty print pipelines in .out files
Diffstat (limited to 'testdata/reduce01.out')
-rw-r--r-- | testdata/reduce01.out | 76 |
1 files changed, 75 insertions, 1 deletions
diff --git a/testdata/reduce01.out b/testdata/reduce01.out index c47bfb91..104994a2 100644 --- a/testdata/reduce01.out +++ b/testdata/reduce01.out | |||
@@ -1 +1,75 @@ | |||
1 | Pipeline {info = "generated by lambdcube-compiler 0.5.0.0", backend = OpenGL33, textures = [], samplers = [], targets = [RenderTarget {renderTargets = [TargetItem {targetSemantic = Color, targetRef = Just (Framebuffer Color)}]}], programs = [Program {programUniforms = fromList [], programStreams = fromList [("vi1",Parameter {name = "position4", ty = V4F})], programInTextures = fromList [], programOutput = [Parameter {name = "f0", ty = V4F}], vertexShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nin vec4 vi1 ;\nsmooth out vec4 vo1 ;\nvoid main() {\ngl_Position = vi1;\nvo1 = vi1;\n}\n", geometryShader = Nothing, fragmentShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nsmooth in vec4 vo1 ;\nout vec4 f0 ;\nvoid main() {\nf0 = vo1;\n}\n"}], slots = [Slot {slotName = "stream4", slotStreams = fromList [("position4",V4F)], slotUniforms = fromList [], slotPrimitive = Triangles, slotPrograms = [0]}], streams = [], commands = [SetRenderTarget 0,ClearRenderTarget [ClearImage {imageSemantic = Color, clearValue = VV4F (V4 0.0 0.0 0.4 1.0)}],SetProgram 0,SetRasterContext (TriangleCtx CullNone PolygonFill NoOffset LastVertex),SetAccumulationContext (AccumulationContext {accViewportName = Nothing, accOperations = [ColorOp NoBlending (VV4B (V4 True True True True))]}),RenderSlot 0]} \ No newline at end of file | 1 | Pipeline |
2 | { info = "generated by lambdcube-compiler 0.5.0.0" | ||
3 | , backend = OpenGL33 | ||
4 | , textures = [] | ||
5 | , samplers = [] | ||
6 | , targets = | ||
7 | [ RenderTarget | ||
8 | { renderTargets = | ||
9 | [ TargetItem | ||
10 | { targetSemantic = Color , targetRef = Just (Framebuffer Color) } | ||
11 | ] | ||
12 | } | ||
13 | ] | ||
14 | , programs = | ||
15 | [ Program | ||
16 | { programUniforms = fromList [] | ||
17 | , programStreams = | ||
18 | fromList | ||
19 | [ ( "vi1" , Parameter { name = "position4" , ty = V4F } ) ] | ||
20 | , programInTextures = fromList [] | ||
21 | , programOutput = [ Parameter { name = "f0" , ty = V4F } ] | ||
22 | , vertexShader = | ||
23 | """ | ||
24 | #version 330 core | ||
25 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | ||
26 | in vec4 vi1 ; | ||
27 | smooth out vec4 vo1 ; | ||
28 | void main() { | ||
29 | gl_Position = vi1; | ||
30 | vo1 = vi1; | ||
31 | } | ||
32 | |||
33 | """ | ||
34 | , geometryShader = Nothing | ||
35 | , fragmentShader = | ||
36 | """ | ||
37 | #version 330 core | ||
38 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | ||
39 | smooth in vec4 vo1 ; | ||
40 | out vec4 f0 ; | ||
41 | void main() { | ||
42 | f0 = vo1; | ||
43 | } | ||
44 | |||
45 | """ | ||
46 | } | ||
47 | ] | ||
48 | , slots = | ||
49 | [ Slot | ||
50 | { slotName = "stream4" | ||
51 | , slotStreams = fromList [ ( "position4" , V4F ) ] | ||
52 | , slotUniforms = fromList [] | ||
53 | , slotPrimitive = Triangles | ||
54 | , slotPrograms = [ 0 ] | ||
55 | } | ||
56 | ] | ||
57 | , streams = [] | ||
58 | , commands = | ||
59 | [ SetRenderTarget 0 | ||
60 | , ClearRenderTarget | ||
61 | [ ClearImage | ||
62 | { imageSemantic = Color , clearValue = VV4F (V4 0.0 0.0 0.4 1.0) } | ||
63 | ] | ||
64 | , SetProgram 0 | ||
65 | , SetRasterContext | ||
66 | (TriangleCtx CullNone PolygonFill NoOffset LastVertex) | ||
67 | , SetAccumulationContext | ||
68 | AccumulationContext | ||
69 | { accViewportName = Nothing | ||
70 | , accOperations = | ||
71 | [ ColorOp NoBlending (VV4B (V4 True True True True)) ] | ||
72 | } | ||
73 | , RenderSlot 0 | ||
74 | ] | ||
75 | } \ No newline at end of file | ||