diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2016-02-08 15:01:43 +0100 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2016-02-08 15:01:43 +0100 |
commit | aa375a66800e577d928c92d7cd405a43ffdec728 (patch) | |
tree | 010958a30d811644823e3de02f932ff918498888 /ddl/out/LambdaCube.IR.hs | |
parent | a9083eb718c3f30a209410d67ed431c3b7d710f4 (diff) |
add info field to pipeline
Diffstat (limited to 'ddl/out/LambdaCube.IR.hs')
-rw-r--r-- | ddl/out/LambdaCube.IR.hs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ddl/out/LambdaCube.IR.hs b/ddl/out/LambdaCube.IR.hs index 03675f7..b81163f 100644 --- a/ddl/out/LambdaCube.IR.hs +++ b/ddl/out/LambdaCube.IR.hs | |||
@@ -1,5 +1,5 @@ | |||
1 | -- generated file, do not modify! | 1 | -- generated file, do not modify! |
2 | -- 2016-01-28T13:15:30.803775Z | 2 | -- 2016-02-08T13:33:23.674070000000Z |
3 | 3 | ||
4 | {-# LANGUAGE OverloadedStrings, RecordWildCards #-} | 4 | {-# LANGUAGE OverloadedStrings, RecordWildCards #-} |
5 | module LambdaCube.IR where | 5 | module LambdaCube.IR where |
@@ -484,7 +484,8 @@ data Backend | |||
484 | 484 | ||
485 | data Pipeline | 485 | data Pipeline |
486 | = Pipeline | 486 | = Pipeline |
487 | { backend :: Backend | 487 | { info :: String |
488 | , backend :: Backend | ||
488 | , textures :: Vector TextureDescriptor | 489 | , textures :: Vector TextureDescriptor |
489 | , samplers :: Vector SamplerDescriptor | 490 | , samplers :: Vector SamplerDescriptor |
490 | , targets :: Vector RenderTarget | 491 | , targets :: Vector RenderTarget |
@@ -1571,6 +1572,7 @@ instance ToJSON Pipeline where | |||
1571 | toJSON v = case v of | 1572 | toJSON v = case v of |
1572 | Pipeline{..} -> object | 1573 | Pipeline{..} -> object |
1573 | [ "tag" .= ("Pipeline" :: Text) | 1574 | [ "tag" .= ("Pipeline" :: Text) |
1575 | , "info" .= info | ||
1574 | , "backend" .= backend | 1576 | , "backend" .= backend |
1575 | , "textures" .= textures | 1577 | , "textures" .= textures |
1576 | , "samplers" .= samplers | 1578 | , "samplers" .= samplers |
@@ -1586,6 +1588,7 @@ instance FromJSON Pipeline where | |||
1586 | tag <- obj .: "tag" | 1588 | tag <- obj .: "tag" |
1587 | case tag :: Text of | 1589 | case tag :: Text of |
1588 | "Pipeline" -> do | 1590 | "Pipeline" -> do |
1591 | info <- obj .: "info" | ||
1589 | backend <- obj .: "backend" | 1592 | backend <- obj .: "backend" |
1590 | textures <- obj .: "textures" | 1593 | textures <- obj .: "textures" |
1591 | samplers <- obj .: "samplers" | 1594 | samplers <- obj .: "samplers" |
@@ -1595,7 +1598,8 @@ instance FromJSON Pipeline where | |||
1595 | streams <- obj .: "streams" | 1598 | streams <- obj .: "streams" |
1596 | commands <- obj .: "commands" | 1599 | commands <- obj .: "commands" |
1597 | pure $ Pipeline | 1600 | pure $ Pipeline |
1598 | { backend = backend | 1601 | { info = info |
1602 | , backend = backend | ||
1599 | , textures = textures | 1603 | , textures = textures |
1600 | , samplers = samplers | 1604 | , samplers = samplers |
1601 | , targets = targets | 1605 | , targets = targets |