| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
WGSL.CodeGen
Synopsis
- prettyExp :: Exp a -> String
- prettyStmt :: Int -> Stmt -> String
- prettyTypeRep :: TypeRep -> String
- prettyFunction :: FunctionDecl -> String
- prettyModule :: ShaderModule -> String
- generateWGSL :: ShaderModule -> String
- generateWGSLOptimized :: ShaderModule -> String
Documentation
prettyTypeRep :: TypeRep -> String Source #
Pretty-print a type
prettyFunction :: FunctionDecl -> String Source #
Pretty-print a function declaration
prettyModule :: ShaderModule -> String Source #
Pretty-print a shader module
generateWGSL :: ShaderModule -> String Source #
Generate WGSL code from a shader module
generateWGSLOptimized :: ShaderModule -> String Source #
Generate WGSL code with optimization (constant folding, etc.)