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/NewStyle.out | |
parent | cc11c0743bbab50f0f9d7bcc33fd41533a280870 (diff) |
pretty print pipelines in .out files
Diffstat (limited to 'testdata/NewStyle.out')
-rw-r--r-- | testdata/NewStyle.out | 82 |
1 files changed, 81 insertions, 1 deletions
diff --git a/testdata/NewStyle.out b/testdata/NewStyle.out index 9e876269..5037cfcf 100644 --- a/testdata/NewStyle.out +++ b/testdata/NewStyle.out | |||
@@ -1 +1,81 @@ | |||
1 | Pipeline {info = "generated by lambdcube-compiler 0.5.0.0", backend = OpenGL33, textures = [], samplers = [], targets = [RenderTarget {renderTargets = [TargetItem {targetSemantic = Depth, targetRef = Just (Framebuffer Depth)},TargetItem {targetSemantic = Color, targetRef = Just (Framebuffer Color)}]}], programs = [Program {programUniforms = fromList [("MVP",M44F)], 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);}\nuniform mat4 MVP ;\nin vec4 vi1 ;\nsmooth out vec4 vo1 ;\nvoid main() {\ngl_Position = ( ( MVP ) * ( vi1 ) ) * ( vec4 ( 0.5,0.5,0.5,1.0 ) );\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 [("MVP",M44F)], slotPrimitive = Triangles, slotPrograms = [0]}], streams = [], commands = [SetRenderTarget 0,ClearRenderTarget [ClearImage {imageSemantic = Depth, clearValue = VFloat 1000.0},ClearImage {imageSemantic = Color, clearValue = VV4F (V4 0.1 0.0 0.2 1.0)}],SetProgram 0,SetRasterContext (TriangleCtx CullNone PolygonFill NoOffset LastVertex),SetAccumulationContext (AccumulationContext {accViewportName = Nothing, accOperations = [DepthOp Less True,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 = Depth , targetRef = Just (Framebuffer Depth) } | ||
11 | , TargetItem | ||
12 | { targetSemantic = Color , targetRef = Just (Framebuffer Color) } | ||
13 | ] | ||
14 | } | ||
15 | ] | ||
16 | , programs = | ||
17 | [ Program | ||
18 | { programUniforms = fromList [ ( "MVP" , M44F ) ] | ||
19 | , programStreams = | ||
20 | fromList | ||
21 | [ ( "vi1" , Parameter { name = "position4" , ty = V4F } ) ] | ||
22 | , programInTextures = fromList [] | ||
23 | , programOutput = [ Parameter { name = "f0" , ty = V4F } ] | ||
24 | , vertexShader = | ||
25 | """ | ||
26 | #version 330 core | ||
27 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | ||
28 | uniform mat4 MVP ; | ||
29 | in vec4 vi1 ; | ||
30 | smooth out vec4 vo1 ; | ||
31 | void main() { | ||
32 | gl_Position = ( ( MVP ) * ( vi1 ) ) * ( vec4 ( 0.5,0.5,0.5,1.0 ) ); | ||
33 | vo1 = vi1; | ||
34 | } | ||
35 | |||
36 | """ | ||
37 | , geometryShader = Nothing | ||
38 | , fragmentShader = | ||
39 | """ | ||
40 | #version 330 core | ||
41 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | ||
42 | smooth in vec4 vo1 ; | ||
43 | out vec4 f0 ; | ||
44 | void main() { | ||
45 | f0 = vo1; | ||
46 | } | ||
47 | |||
48 | """ | ||
49 | } | ||
50 | ] | ||
51 | , slots = | ||
52 | [ Slot | ||
53 | { slotName = "stream4" | ||
54 | , slotStreams = fromList [ ( "position4" , V4F ) ] | ||
55 | , slotUniforms = fromList [ ( "MVP" , M44F ) ] | ||
56 | , slotPrimitive = Triangles | ||
57 | , slotPrograms = [ 0 ] | ||
58 | } | ||
59 | ] | ||
60 | , streams = [] | ||
61 | , commands = | ||
62 | [ SetRenderTarget 0 | ||
63 | , ClearRenderTarget | ||
64 | [ ClearImage { imageSemantic = Depth , clearValue = VFloat 1000.0 } | ||
65 | , ClearImage | ||
66 | { imageSemantic = Color , clearValue = VV4F (V4 0.1 0.0 0.2 1.0) } | ||
67 | ] | ||
68 | , SetProgram 0 | ||
69 | , SetRasterContext | ||
70 | (TriangleCtx CullNone PolygonFill NoOffset LastVertex) | ||
71 | , SetAccumulationContext | ||
72 | AccumulationContext | ||
73 | { accViewportName = Nothing | ||
74 | , accOperations = | ||
75 | [ DepthOp Less True | ||
76 | , ColorOp NoBlending (VV4B (V4 True True True True)) | ||
77 | ] | ||
78 | } | ||
79 | , RenderSlot 0 | ||
80 | ] | ||
81 | } \ No newline at end of file | ||