summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCsaba Hruska <csaba.hruska@gmail.com>2015-09-07 19:17:08 +0200
committerCsaba Hruska <csaba.hruska@gmail.com>2015-09-07 19:17:08 +0200
commit62b0743a9613eae4355eb9d4890373351366a9b5 (patch)
tree072737246f27ca7e5cc34f1b04038e28a79c2dd5
parentab758fd36fae40f3cc998065b8bf9c4ce5e8169b (diff)
adjust comments
-rw-r--r--Definitions.hs12
1 files changed, 7 insertions, 5 deletions
diff --git a/Definitions.hs b/Definitions.hs
index d117975..233e695 100644
--- a/Definitions.hs
+++ b/Definitions.hs
@@ -24,6 +24,7 @@ ir = execWriter $ do
24 const_ "VWordArray" [Array Word32] 24 const_ "VWordArray" [Array Word32]
25 const_ "VFloatArray" [Array Float] 25 const_ "VFloatArray" [Array Float]
26 26
27 -- GPU type value reification, needed for shader codegen
27 data_ "Value" $ do 28 data_ "Value" $ do
28 const_ "VBool" [Bool] 29 const_ "VBool" [Bool]
29 const_ "VV2B" [v2b] 30 const_ "VV2B" [v2b]
@@ -214,8 +215,8 @@ ir = execWriter $ do
214 215
215 data_ "StencilOps" $ do 216 data_ "StencilOps" $ do
216 constR_ "StencilOps" 217 constR_ "StencilOps"
217 [ "frontStencilOp" #:: "StencilOperation" -- ^ Used for front faced triangles and other primitives. 218 [ "frontStencilOp" #:: "StencilOperation" -- Used for front faced triangles and other primitives.
218 , "backStencilOp" #:: "StencilOperation" -- ^ Used for back faced triangles. 219 , "backStencilOp" #:: "StencilOperation" -- Used for back faced triangles.
219 ] 220 ]
220 221
221 data_ "StencilTests" $ do 222 data_ "StencilTests" $ do
@@ -223,11 +224,12 @@ ir = execWriter $ do
223 224
224 data_ "StencilTest" $ do 225 data_ "StencilTest" $ do
225 constR_ "StencilTest" 226 constR_ "StencilTest"
226 [ "stencilComparision" #:: "ComparisonFunction" -- ^ The function used to compare the @stencilReference@ and the stencil buffers value with. 227 [ "stencilComparision" #:: "ComparisonFunction" -- The function used to compare the @stencilReference@ and the stencil buffers value with.
227 , "stencilReference" #:: Int32 -- ^ The value to compare with the stencil buffer's value. 228 , "stencilReference" #:: Int32 -- The value to compare with the stencil buffer's value.
228 , "stencilMask" #:: Word32 -- ^ A bit mask with ones in each position that should be compared and written to the stencil buffer. 229 , "stencilMask" #:: Word32 -- A bit mask with ones in each position that should be compared and written to the stencil buffer.
229 ] 230 ]
230 231
232 -- primitive types
231 data_ "FetchPrimitive" $ do 233 data_ "FetchPrimitive" $ do
232 enum_ "Points" 234 enum_ "Points"
233 enum_ "Lines" 235 enum_ "Lines"